Unable to view website hosted on local machine

I have an ASP.NET website hosted at home in IIS. Outside of my home network, I see a site, but inside the network it gives me a 404 error. I can view the site as localhost. This seems like a DNS problem, just not sure how to fix it.

+3
source share
2 answers

This is almost certainly a NAT issue. I assume that your web server is located behind the NAT router, and you have redirected some port (possibly 80) from the external interface of the router to port 80 on your server computer. I also assume that you are trying to access your site either using a name that resolves your external IP (possibly a dynamic DNS name), or you are trying to access it directly using this external IP address. This probably will not work out of the box, since most NAT routers will only make ports available for packets entering the external interface of the router.

If this is true, there are four possible solutions:

  • - "NAT loopback", "Ext-int loopback" . , IP-, , , , . , . , , . , , (Tomato, OpenWRT, DD-WRT ..). Tomato .

  • IP-, , - .

  • DNS, , , IP-. (3) . .

  • DNS- , DNS IP-, DNS- .

+6

IP-, , IP- . IIS, , - . , URL-, 404.

, IP- IIS, IP- DNS.

+3

Source: https://habr.com/ru/post/1704380/


All Articles