Access web server on LAN using IP fail

08
2014-07
  • July

    I have a web server in my LAN with IP: 192.168.1.103, I can only access the web server from browser in this computer through http://localhost:8080, I cannot access it through 192.168.1.103:8080, nor can I access it through other computer on the LAN.

    Could anyone shed some light on how to solve this?

  • Answers
  • arielnmz

    Make shure your firewall is not blocking the port 8080. The default por for html is 80 so maybe you've that configuration wrong. Also, can the other computers in the LAN ping to that IP?

  • barlop

    I suppose perhaps you have simply bound your web server to your 127 address rather than your 192 address or the 0.0.0.0 address which allows any connections even outside your lan (though a firewall can secure it).

    if you do netstat -aon you'll see 127.0.0.1

    look for your particular web server, how to bind it to the correct address. If it showed up in netstat -aon as 0.0.0.0 then your problem should be solved. I think if it's bound to a 192 address that might work too for the rest of your LAN.


  • Related Question

    osx snow leopard - Can access web server from lan, but not internet
  • Sisyphus

    Right, well as the title says really.

    OS X Snow Leopard web server, all the latest updates.

    I can connect it to it on the LAN, but not on any external ISP...sorta.

    Can't connect to the domain on port 80, however I can connect to the site using port 443 with ssl, by going with Https instead of Http.

    I can ping the domain happily. I can also ping the IP. And the IP also resolves to the domain.

    So I'm thinking it's something in the Apache config, or OS X. However I have looked in httpd.conf and can't see anything askew.

    So I'm pretty stuck. Anybody got any ideas?


  • Related Answers
  • kobaltz

    When you say that you can connect to it from the LAN, are you on that machine or a different computer? If you're on that machine, then it could be that your apache config file is listening to port 80 only on 127.0.0.1 (loopback). If you're able to see it from another computer, check and make sure that your firewall/router is pointing port 80 to that server's local IP.