Search code examples
asp.net-mvc-4iis-express

Bind an application with public IP address


I have an ASP.Net MVC application developed on my system. I want to access my site from remote computer by binding my app with public IP using following Commands,

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

in Visual Studio i have updated applicationhost.config file

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

but it is still not working saying
"Service Unavailable
HTTP Error 503. The service is unavailable."


Solution

  • In applicationhost.config file the localhost must be changed to your computer name.