Networking – Public IP address answered by router, not internal web server with Port Forwarding

networkingport-forwardingrouterwebserver

I have a WGT634U wireless router on my home network with a webserver at address 192.168.1.200. I have set up port forwarding so that calls to http://xxx.xxx.xxx.xxx (my public IP address) are answered by the web server internally at 192.168.1.200.

The issue is that when I attempt a call to the public IP address from inside the 192.168.x.x network, the request is being answered by the web server on the router (192.168.1.1) so that I can log into it and manage it instead of forwarding me to 192.168.1.200.

If I use the address of the web server directly at http://192.168.1.200, there's no problem, but I am testing a Web Application that calls to a public server then redirects the browser back to my public IP address (technically a dynamic dns hostname).

I can use IP masking with a tool like Tor, but it is painfully slow and maintaining a session is error prone. I may only complete 1 of 5 requests, the whole process taking upwards of 20 minutes each time.

Best Answer

Here's Netgear's page for your router: WGT634U 108 Mbps Wireless Storage Router.

You can click on the Documentation tab to download the manual. Unfortunately, the manual suggests LAN computers can't use the WAN IP address to access the LAN computer web server. See page 90:

Local PCs must access the local server using the PC's local LAN address. Attempts by local PCs to access the server using the external IP address will fail.

From the same product page, under the KB/FAQs tab, I found I am unable to access my web server via host name which explains a possible work around: Use the hosts file on your computer to map the external domain name to the LAN IP address.

Related Question