Associate the application with a public IP address

I have an ASP.Net MVC application developed on my system. I want to access my site from a remote computer, binding my application to the public IP, using the following commands,

netsh http add urlacl url=http://192.168.1.42:3000/ user=everyone

in Visual Studio I updated the applicationhost.config file

<binding protocol="http" bindingInformation="*:3000:192.168.1.42" />

but it still doesn’t work, saying "Service unavailable
HTTP Error 503. Service unavailable."

+4
source share
1 answer

In the applicationhost.config file, the local host must be changed to the name of your computer.

+1
source

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


All Articles