Forum Moderators: phranque

Message Too Old, No Replies

Apache not working over LAN only from the same machine

         

the182guy

8:36 pm on Feb 17, 2010 (gmt 0)

10+ Year Member



I have Apache 2.2 for Windows installed on a Vista machine for development. All is well when using the web server from the same machine but if I try to connect from another host on the LAN then it fails to find the server and no pages are served.

I first thought it must be the Apache config setting, the config says:

Listen 80


Which I believe is the correct setting to listen on all network interfaced.

Next I thought it could be my home router (Netgear DG834GT) but I have ruled this out. I know there is no problem with the networking because I ran a test by creating a small VB app to listen on port 80, and I then went to another host on the network and tried to connect to that port, and it worked. So I know it must be the Apache config that's causing it.

Any ideas?

jdMorgan

12:05 am on Feb 18, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How, specifically, do you try to access the site from a remote LAN workstation? By hostname? By IP address? What are you typing in the browser address bar?

Jim

the182guy

8:37 am on Feb 18, 2010 (gmt 0)

10+ Year Member



Hi Jim, thanks for your reply.

When trying to access the site from another LAN node I am typing [192.168.0.2...] into the address bar. I have also tried changing the port to see if port 80 is the problem by changing apache to listen on 9999 and then using [192.168.0.2:9999...] those links work from the local machine but not from another node on the network.

The network is a very simple setup where all machines are on the same subnet (192.168.0.x).

jdMorgan

2:47 pm on Feb 18, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What kind of server did you configure? -- Single server, name-based virtual, or IP-based virtual?

If name-based, the that name will need to be 192.168.0.2.

Also, be sure you've uninstalled the MS IIS server if you've got the 'pro' version of the OS. If it's installed, it will grab the socket as soon as the machine boots (although you should get an Apache start-up error in this case).

If you haven't already done so, check out the server config tutorials at Apache.org.

Jim