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!

not able to access apache server from other IP addresses

Status
Not open for further replies.

ababa

MIS
Mar 30, 2004
6
US
hi,
I installed apache server 2.0 on WindowsXP Home PC.Its working fine locally.
But I was not able to access my php files stored in my server from my college.It was displaying an error page.
I also tried to change the Allow directory httpd.conf file
Allow from all .But its not working.
what other directories do I need to change?. My aim is to access my php files anywhere like other links(urls).


Pls help me..
thanks in advance
ababa
 
ababa,

As far as I know, you should be able to run Apache on Windows XP Home.

A few things to consider:
Is your computer behind a firewall/NAT router?
Is Apache currently running?
Have you restarted Apache since making changes to your httpd.conf?
Can you access Apache locally by Can you access Apache locally by your public IP address?

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
hi Wishdiak
Thanks for ur reply.

Is your computer behind a firewall/NAT router?
No,for testing purpose I uncheked internet connection firewall property in XP.

Is Apache currently running?
yes .

Have you restarted Apache since making changes to your httpd.conf?
Yes

Can you access Apache locally by Previously I was able to access apache locally by 2 days back,we installed a wireless router NETGEAR and shared our internet connection to the new PC.
Now I am not able to access apache locally by
Can you access Apache locally by your public IP address?
No

By typing address of the system in which apache is installed I am able to acess apache server locally and able to work with php files and also I was able to access apache server from my new pc .

thanks in advance
ababa
 
ababa,

If I understand you correctly, you recently added a wireless router to your network. Since adding this router, you are unable to connect to your Apache server, locally from the computer that runs Apache, using either or You also state that you can connect to your Apache server from another computer on your LAN, just not from the computer that is running Apache.

It seems odd that you are able to access your Apache server from other computers on your LAN, but not locally from the same computer, and that this problem first manifested when you added the router to your LAN. To me this would point to the router as the problem, or possibly a setting that changed as a result of adding the router.

Did any Windows configuration settings on your Apache server change when you added the wireless router? Does the Windows XP Home computer that hosts Apache have multiple network cards (or a different network card) installed? Are there any other symptoms that affect the computer that hosts Apache?

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
Hi wishdiak,
sorry for the confusion,

Simply ,I am able to access apache server from 2 systems by using internal IP addresses.
The system in which it is installed and also from my another computer on Lan.

But I am not able to access it remotely.

Thanks in advance
ababa

 
Did you forward port 80 on the router to the PC running apache?

You won't be able to access it remotely until you do this.
 
Hi danomac,
Thanks for the reply.
Can you pls tell me how to do this?

Thanks
ababa
 
I can't provide instructions as routers are all different. I'd look in the manual regarding 'Port Forwarding' or 'Virtual Servers' or something to that effect.
 
ababa,

In order to access your Apache server remotely (as in through the public internet), three things need to happen.

1. A client needs to request a HTTP connection to your server. This can be done by IP address, or by hostname if you have DNS records set up for your domain.

2. If a client requests a HTTP connection to your public IP address, and your public IP address belongs to your router, then your router needs to forward the request to the correct internal LAN IP address.

3. Your Apache server receives the request and processes it.

It sounds like the process stops at your Netgear router, which may not be forwarding the request to the Apache server. Consult the documentation for your router, or Netgear's online support. Each router's configuration is different.

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
hi donomac&Wishdiak

I had gone thru my router manaul and did portforwarding and tested it successfully.
Now I am able to access my apache server remotely.

Thanks for the great help.//.




Thanks
abab
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top