Forum Moderators: phranque

Message Too Old, No Replies

Apache work internal but not external

         

tibob

1:27 pm on Jun 8, 2005 (gmt 0)

10+ Year Member



Hi i have a apache 2.0 web server on windows! When i try to access my web page when im at the office it work. ( the web server is on the same network, so it access it locally) but when im home i cannot access the web page. I have a linksys router. I have forward all my port to the webserver , also when i notice that doesnt i put it in the dmz. Also i have my own dns server . Somedy now what to do? thks

wheel

2:30 pm on Jun 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to webmasterworld.

The problem is almost probably either your router on your network that has the webserver, or how you are accessing your webserver network from your home computer.

- Make sure you have port 80 forwarded to the web server IP
- make sure the web server machine has a static IP address on your internal network - not a dynamic ip. If you've got your webserver on a dynamic IP on your internal network then it seems your router would have a hard time port forwarding.
- make sure your network has an external static IP address provided by your ISP. If you have a dynamic IP address it gets goofy to try and access the network.
- try accessing the webserver by using the static ip address provided by the ISP, i.e. visit the site:
[255.255.255.255...] (if that works, then you've just got external dns problems).

The exact error message you are seeing might help, something other than 'it's not working'.

tibob

2:45 pm on Jun 8, 2005 (gmt 0)

10+ Year Member



yes everything seems ok!

it work with the ip , so what i do now?
:)

darcmarc

3:31 pm on Jun 8, 2005 (gmt 0)

10+ Year Member



Is your router/gateway set up for forwarding port 80 traffic? You said yes, but make sure.

(Make sure you have permission and the password to do this)
First find out your gatway ip:
Click Start
Click Run
Type 'cmd' (without the quotes)
Press Run
Type 'ipconfig' (without the quotes (always if you couldn't figure it out))
Press Enter
Note the IP address of your gateway.
(If its a very default setup, it's likely it will be something like 192.168.x.x )
Close that window by typing 'exit' and pressing enter.
Open your internet browser.
type [192.168.x.x...] (or replace with whatever your gateway IP was)
Press enter.
Chances are you will need to enter a password. Do so.
This next part is different for different routers.
Hunt around for a section called 'Forwarding' or 'Applications and Gaming' or 'Port Forwarding' ect...

Make sure that port 80 is forwareded to your ip address (that the server is running on. Make sure that the server has a static IP address, that you assigned.)
Save all the changes and see if that works.