For the mom who gives us everything - Mother's Day gifts that connects us.
Revolverocelot11's profile

Contributor

 • 

2 Messages

Monday, September 24th, 2012 6:27 PM

Unable to access internal network from external address

I have a server set up that I regularly need to access from outside of my home network. Port forwarding is set up correctly on the router (Motorola NVG510) and it is fully accessible outside of my home network. I use dyndns to keep my IP up-to-date and it is working. However internally (say from my desktop or my laptop connected to my home network) I cannot access it by the full URL (myhost.dyndns.org) and I am forced to use the internal IP. This is inconvenient to have to change every time I need to access the server when going from inside my home to anywhere outside and visa versa. Is there a setting or a way past this so the address will resolve correctly within my own network?

Accepted Solution

Official Solution

Guru

 • 

428 Messages

12 years ago

http://www.pcreview.co.uk/forums/cant-access-public-website-within-web-server-domain-need-force-nat-t1729841.html
What you want is the have a record in your own DNS Server for these sites' "Domain Names" that resolve to the internal Private IP instead of the Public IP and then make sure that your own DNS is the first DNS Server requested from by these machines. This allows these web servers to communicate directly to each other without involving the Firewall at all (it also allows your internal users to work the same way). The only time that the firewall should be involved is when an outside host makes a request to those machine from the Internet. Any internal machine should *never* have to go to the firewall to get to something that is already positioned physically on the same side of the firewall that the requesting machine is already on.

Possible Fix:
First find out what the IP address is of the external web server if
you do not already know it (You can get it by pinging the
website).

Go to Start > Control Panel > Administrative Tools >
DNS and locate example.com. Right-click and choose “New
Host (A or AAAA)”. Type “www” into the name field, and the IP
address of your external web server into the IP Address field.
Click the “Add Host” button to save it.

Contributor

 • 

2 Messages

12 years ago

Thanks! I hadn't thought of this. I will try it when I get the chance but your right, this seems like it would be the best choice. I think because the server is already registered in DNS however I should use a CNAME record (pointer) instead, but the idea is the same.

Contributor

 • 

1 Message

8 years ago

yes remain privite 

Contributor

 • 

5 Messages

7 years ago

This is unacceptable for portable devices, however, that automatically switch between an intranet and internet context as you move it around.  At least, I've yet to find network settings that let you use a different 'host' file depending on what network it is connected to.  

What WOULD be nice is:

1. During DHCP, the AT&T router returned ITSELF as the primary DNS server.
2. The AT&T router then reported the Internal IP Address instead of the external one when requests for those DNS entries are made.

OR

The AT&T router was smart enough to detect that a packet coming from inside the network is bound for somewhere else inside the network, even though the destination address is remote, and routed it properly.  The router has all the necessary information to make this determination.

Not finding what you're looking for?
New to AT&T Community?
New to the AT&T Community? Start by visiting the Community How-To.
New to the AT&T Community?
Visit the Community How-To.