Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the URL of the web server? 3

Status
Not open for further replies.

SimonSellick

Programmer
Nov 3, 2003
305
GB
Hi,

Sorry if I'm being dense, but...

I've installed Apache on my Windows XP PC and got it all working in that it serves pages as localhost. Other than localhost, what URL should I use in IE to get pages served? I want other PCs on my home network (connected to each other via an ADSL hub/bridge) to be able to use the server as well, but they obviously don't see it as localhost.

I feel that this is probably covered in the Apache documentation but I can't find it. The closest I can get seems to eb the virtual servers section in httpd.conf, but that looks way over the top for what I'm trying to do.

If anyone can point me toward the appropriate documentation, I'd be grateful.
 
SimonSellick,

If you don't have DNS set up at this point, the other hosts on your network can access your Apache server by its IP address, providing that you have the directive

Listen 80

in your httpd.conf.

For example, if your Apache server is at 192.168.0.99, then you could access it from another host using
Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
You should also be able to use the hostname a.k.a. machine name of the node apache is installed on.

 
Thanks both for the response - I'll try those this evening and report back.
 
No good I'm afraid. I can ping the IP address of the server PC from another PC, but can't get any response from IE using the IP address in the URL. The 'listen 80' line is present in httpd.conf.
 
Set port forwarding on your router so it sends all http traffic to the ip address of the server.
 

I just debugged a similar problem.

First, at the command prompt do a "netstat -an".

See if your machine is listening on port 80;
it should be
TCP {IPADDRESS}:80 ..... LISTEN

If you bound to a explicit IP address, it will
be that address. If you left if unspecified, it
will bind to 0.0.0.0:80

If you are listening, then on that machine issue:

telnet {IPADDRESS} 80

See if it connects. if it does,
type in "get /" and if the web server
is active, it will spit something back at you.

If this works, and it doesn't from a machine that
is unblocked, the probable cause is the Microsoft XP software firewall (as stated by smah), which is on by default and blocks http/port 80 by default. It can be changed in the Control Panel. (I don't run XP, so I can't remember the exact path). I know that I editted something
in the "Local domain" that allowed http and https.

gene
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top