PDA

View Full Version : [SOLVED] Apache - Web pages not accessable from other computers on LAN



Guruprasad
December 22nd, 2010, 03:50 PM
I have two computers. I have installed Apache on one of them. I can access webpages from local computer (http://localhost/bc). But I can not access them from other computer on network.

Computer A (192.168.100.9) with Apache is connected to internet. It shares the internet with computer B (192.168.100.5) on network. Default gateway for computer B is 192.168.100.9 . I am trying to access the webpages from computer B (http://192.168.100.9/bc) but can not connect.

arrrghhh
December 22nd, 2010, 04:04 PM
Does computer B have any issues accessing the internet thru that shared connection you have...? Also, can you ping computer A/the gateway from computer B?

Might also be good to check firewall rules - if you have UFW enabled, you'll need to allow port 80 to that IP. I allow all local traffic to my server, you may or may not want to do that... It is a security loophole if a lot of people get on your LAN.

CharlesA
December 22nd, 2010, 04:27 PM
First thing I would check would be firewall rules.

Also post the output of this, when run from the machine running apache:


ifconfig

Guruprasad
December 22nd, 2010, 04:30 PM
Thank you very much...

Computer B can access internet.

The problem was with firewall rules. I allowed port 80 for just 192.168.100.5

arrrghhh
December 22nd, 2010, 04:38 PM
The problem was with firewall rules. I allowed port 80 for just 192.168.100.5

Glad to hear it :D