Access to local server .net application via public ip address

Posted on 2011-10-21
Medium Priority
Last Modified: 2012-05-12

(I logged a previous question some months ago which didn't get a definitive answer and now I have the same issue on a client network.)

I have setup an asp.net application on a local server (actually a win7 machine) and setup the router to allow access via public ip address. This previously stopped working when a new model router was used - a problem which was then solved by using the old router again!

Yesterday for some unknown reason, this issue has returned with no change in router or anything else we can tell for that matter. I can give clients the local server address which works fine but they now have to use 2 shortcuts to access the application depending on whether they're in the office or not - annoying to say the least.

To clarify, when accessing the application using the public ip address when connected to the local lan, browsers just seem to hang (as opposed to some sort of page not found error). This happens on various client pcs with various browsers.

Can anyone shed some light or point me in the direction of the relevant router settings to check - I can only think there's either been an automated BT firmware upgrade or a Windows update perhaps?

Question by:nigelr99
  • 2
LVL 20

Accepted Solution

brwwiggins earned 2000 total points
ID: 37007576
There could be a number of things going on here. If the site answers by the local address then IIS is probably configured correctly. My guess one or all of the following are occurring

(1) Your public IP address has changed possibly

(2) Your ISP started blocking inbound HTTP requests for your service

(3) Your router cannot handle clients going out of the local LAN to only come back in on the WAN interface to access the web server (which is typical)

My suggestion would be to try and setup DNS or host files so that users only have to go to a NAME and let DNS handle if they are internal or external.

Do you have DNS running in your environment?

Author Comment

ID: 37008073
Thanks brwwiggins. In response:

1. We still access the site using the same public ip from outside the lag so it hasn't changed

2. The site still works fine from outside the lan so I guess no blocking of any sort can be active.

3. The router has not been changed since it was working a couple of days ago so it can't be any sort of limitation with that.

We do not have dns running and it's an area where my knowledge fails me.. could you guide me on where to start as that sounds like the solution, regardless of the cause of the problem?

Author Closing Comment

ID: 37114017
OK, I finally setup 2 entries in the hosts file on each pc, the first pointing to the local lan and the second, the wan ip address. This also allows me to use an alias for the site as suggested by brwwiggins.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
In this article I will be showing you how to subnet the easiest way possible for IPv4 (Internet Protocol version 4). This article does not cover IPv6. Keep in mind that subnetting requires lots of practice and time.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question