Forum Moderators: phranque

Message Too Old, No Replies

how do I access an apache web server on my LAN?

just want to view a page on it

         

partha

3:55 am on Mar 5, 2005 (gmt 0)

10+ Year Member



I just want to use a PHP script off machine on my LAN network that's running apache. If I go to the machine running apache, I can just type

[localhost...]

in a browser to get what I want. So how do I do that from another computer on the local network?

coopster

11:55 am on Mar 5, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It depends on what protocols are running on your networked machines. You can try it by IP or possibly by computer name (Windows):

http://192.168.1.4/

http://computername/

partha

5:50 pm on Mar 5, 2005 (gmt 0)

10+ Year Member



I tried both of those and it just said "connecting to blahblah" and then said it coudn't load.

I installed apache using AppServ, so perhaps it has some default setting that prevents it from being visible to other computers on the LAN.

Is there some setting in apache config files or something that I might need to change?

oh and btw, if it helps, I CAN access "windows file sharing" (SMB) shares that are on the apache machine from other computers on the LAN

abertone

5:55 pm on Mar 5, 2005 (gmt 0)

10+ Year Member



I don't know if this will help, but I access it at:

[127.0.0.1...]

-ABertone

partha

6:07 pm on Mar 5, 2005 (gmt 0)

10+ Year Member



that would only work from the machine that apache is running on -- 127.0.0.1 is identical to localhost

grandpa

6:31 pm on Mar 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is the machine that's running Apache set up as a server? Or are you just running Apache on a machine - like we do here. We don't have a DNS server running, so the web pages have to be accessed with the IP address of the machine running Apache.

http://192.168.1.100

Your router stats will give you the address. You can find it too, by using:

Start -> Run -> CMD <enter> ipconfig/all <enter>

And

It depends on what protocols are running on your networked machines

partha

3:25 am on Apr 4, 2005 (gmt 0)

10+ Year Member



what do you mean "is the apache running as a server"? I can see the pages apache is serving FROM the machine that apache is running on. But I cannot see them on any other machine on the network.