Asp.net mvc 4 使用公共IP地址绑定应用程序
我在我的系统上开发了一个ASP.NETMVC应用程序。我想通过使用以下命令将我的应用程序与公共IP绑定,从远程计算机访问我的站点Asp.net mvc 4 使用公共IP地址绑定应用程序,asp.net-mvc-4,iis-express,Asp.net Mvc 4,Iis Express,我在我的系统上开发了一个ASP.NETMVC应用程序。我想通过使用以下命令将我的应用程序与公共IP绑定,从远程计算机访问我的站点 netsh http add urlacl url=http://192.168.1.42:3000/ user=everyone 在Visual Studio中,我更新了applicationhost.config文件 <binding protocol="http" bindingInformation="*:3000:192.168.1.42" />
netsh http add urlacl url=http://192.168.1.42:3000/ user=everyone
在Visual Studio中,我更新了applicationhost.config文件
<binding protocol="http" bindingInformation="*:3000:192.168.1.42" />
但它仍然不能说“服务不可用”HTTP错误503。该服务不可用。“在applicationhost.config文件中,必须将本地主机更改为您的计算机名。503是一个服务器错误,因此如果您收到该地址的响应,它将正确绑定。