Apache problem: Can see http://localhost/ but not http://ipaddress/

Discussion in 'Linux Networking' started by Andrew, Feb 13, 2005.

  1. Andrew

    Andrew Guest

    I hope that this is the appropriate forum for this question - new to
    Apache & Linux & can't find the answer to this one.

    I have two machines on a wireless network at home, using a D-Link router.

    One is running XP Pro, one running FC3. Apache is running on both (but not
    at the same time).

    On either machine I can start Apache & see http://localhost/ but if I try
    to use http:// & the IP address of the machine then only the XP version
    works! Apache on fc3 returns, "The connection was refused when attempting
    to contact 192.168.0.101".

    Any help with this would be much appreciated - I've looked for answers but
    so far found nothing...

    Many thanks,
    Andy
     
    Andrew, Feb 13, 2005
    #1
    1. Advertisements

  2. Probably because "localhost" resolve to 127.0.0.1 so trought the loopback
    device, while 192.168.0.101 is caught by the firewall.

    Davide

    --
    root# su bofh
    ENTER BOFH AUTHENTICATION SEQUENCE:xxxx
    Good morning, Dave.
    bofh* echo 'THANK luser4 FOR WHAT WILL HAPPEN NEXT.' | wall; rm -rf /
    --Joel Maslak
     
    Davide Bianchi, Feb 13, 2005
    #2
    1. Advertisements

  3. Andrew

    Andrew Guest

    Thanks for the quick reply...

    At the risk of sounding very green now... the firewall on the router
    doesn't appear to be the issue, but not sure about on the local machine.
    Does fc3 have a firewall installed as standard?
     
    Andrew, Feb 13, 2005
    #3
  4. Andrew

    Andrew Guest

    Latest:

    I disabled the firewall through the fc3 'security level' app but still
    have the same problem. Any ideas welcome!

    Thanks,
    Andy
     
    Andrew, Feb 13, 2005
    #4
  5. Andrew

    Andrew Guest

    Sorted...

    Downloaded Firestarter, updated policies to allow http on port 80 and
    all's fine - no idea why the other method I tried didn't work, but it
    seems to be fine now.

    Andy
     
    Andrew, Feb 13, 2005
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.