Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-21-2008, 07:48 PM   #1
Registered: Aug 2004
Location: Ohio
Distribution: Debian, Slackware
Posts: 58

Rep: Reputation: 15
Can't access my server from within the network

Here's my setup:
I've got a cable modem that's connected to the internet and to my router. Connected to my router I have a laptop (wifi) and two desktops - my server and my desktop. My router is set to forward all ports to my server.

When I ask other people to try and access my public IP or my domain name ( from outside of my network, they are able to get there with no problem. When I try to access the server from within the network with its my external IP or domain name, the connection times out. I *can* access my server if I use the local IP (192.168...).

Obviously, I would like to be able to access my server from inside the network with my external IP or domain name. I know I can just edit /etc/hosts and add a line for my server, but I don't want to have to do that for each computer that connects to my network.

My router is a Netgear WGR614 v6 and my modem is a Motorola Surfboard.

Any help, please?
Old 03-22-2008, 05:38 AM   #2
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Your internal systems are probably using a DNS service that doesn't know about the external IP address/name of your server. If you register a domain then it normally takes several days to fully propagate across all of the DNS servers, and if you are using a dynamic DNS provider then I guess that is a potential point of failure, too.

You can test the DNS on any client with the nslookup utility to confirm that this is a DNS issue (even Windows ships with nslookup).

I generally don't recommend supplementing DNS with hardcoded local entries in the hosts file, because it really just hides the problem, rather than fixing it.
Old 03-22-2008, 11:26 AM   #3
Registered: Aug 2004
Location: Ohio
Distribution: Debian, Slackware
Posts: 58

Original Poster
Rep: Reputation: 15
Problem solved.

Turns out my router didn't support NAT Loopback - I went to bestbuy and bought a new one which did. Everything works as it should, now.

Also, I use to manage my domain name. Their name servers are set up to always point at my IP address (through a wget script + cronjob). It should only take a few days if I'm actually changing my name server, not the name server's records.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help on Network Access Server. jkmreyes Linux - Server 4 04-01-2008 09:43 AM
How do I access my server content from outside my network? harshnoise Linux - Networking 8 05-11-2005 03:57 PM
access server from outside network? wza Linux - Networking 2 01-07-2004 10:13 AM
Network access OK but server cannot use internet gkhewitt Linux - Networking 6 08-04-2003 08:13 PM
leafnode can't access server from network vrillusions Linux - Software 1 05-22-2003 10:13 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration