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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't connect to Intranet from LAN using ext IP. Ports forwarded

Status
Not open for further replies.

snowweb

Technical User
Apr 8, 2003
56
PH
We are using Netgear DG814 NAT Router for Internet g/w (192.168.0.51) and have forwarded port 80 to Intranet server on 192.168.0.1

However, if I type our public static IP into a browser when connected to the LAN, I get "No Page to Display" but when I connect from the Internet (when I take my laptop home), it comes up fine.

We are also running a LAN mail server on 192.168.0.1 and I have the same problem with that.

In short, if from the LAN I try to connect bye typing 192.168.0.1 into a browser (or specify it as pop3 host in mail client) it works fine, but from home I have to change them to the public IP. I thought I would get around this by always using the public IP but for some reason it doesn't work.

Could this be a LAN side DNS problem? and if so, what do I need to do about it?

Kind regards

peter
 
However, if I type our public static IP into a browser when connected to the LAN, I get "No Page to Display"

Most routers are designed to route from the LAN to the WAN, and vice-versa....what you're asking is for the router to take a request from the LAN, and route it back into the LAN....that's not something the average SOHO router will do.

One solution is to make a public DNS entry to your router's public IP....And run a DNS server on your LAN which points the domain name to the internal server's IP instead of the public IP.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Thanks for that. I believe your adding a record to our DNS server would do the trick. I have attempted this but can't seem to figure out where to add the record and what type of record to add.

Are you able to shine any light on this for me please?

Thanks, pete
 
You want your DNS records to look something like this:
public dns: intranet.example.com -> 127.232.234.211 (i.e. your public static IP)
internal dns: intranet.example.com -> 192.168.2.1 (your server's IP).
I have attempted this but can't seem to figure out where to add the record and what type of record to add.

Changing DNS records for your public IP will depend on who manages your domain entries. The company hosting your domain should be able to help - they probably have some sort of online control panel for this.

Adding an internal dns entry depends on what software/os you're running.

A windows way to do this would be to go to every desktop on the intranet and add an entry into the 'hosts' file found in %SYSTEM_DIR%\system32\drivers\etc\.

If you run a Windows Server 2000, there's a howto on configuring DNS at
<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top