Can't view my website internally?

vapb400

Gawd
Joined
Sep 19, 2004
Messages
786
Hey guys real quick question, I have my computer and server behind a router, and have the server set up as a web host. As of now I can view the site by typing in the internal IP, but I can not view it by typing the domain I have set up for it while I'm behind my router. If I am at work or school I can see the site fine by typing in the domain. Anybody have any ideas on this? It's probably just some simple thing I dont have turned on inside the router, but I dunno?

Thanks
 

sandmanx

[H]F Junkie
Joined
Mar 22, 2001
Messages
9,902
Do an nslookup of your domain behind your router and see what it says. It has to be a DNS issue behind the router.
 

rcolbert

Gawd
Joined
Oct 6, 2004
Messages
714
Your router probably isn't letting your connection (through NAT presumably) take a round trip to get outside and back in.

If your internal IP for the server is different that your external (assuming again) then I'd say the best options for a simple configuration is to use a hosts file on your client to resolve the DNS name of your server to the internal IP address. If your environment is more complex than a single client and single server, then other possibilities also present themselves.
 

:LJ:

[H]ard|Gawd
Joined
Jun 6, 2002
Messages
1,348
Some routers allow you to set up manual DNS records - I know my old crappy Conexant did. That's how I got round it, anyway.
 

Boscoh

[H]ard|Gawd
Joined
Nov 25, 2003
Messages
1,159
It's most likely routing related. Just setup your host file on your PC to resolve that domain name to the internal IP of the server and that should fix it.
 
Top