Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc 4 使用公共IP地址绑定应用程序_Asp.net Mvc 4_Iis Express - Fatal编程技术网

Asp.net mvc 4 使用公共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" />

我在我的系统上开发了一个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" />

但它仍然不能说“服务不可用”

HTTP错误503。该服务不可用。“

在applicationhost.config文件中,必须将本地主机更改为您的计算机名。

503是一个服务器错误,因此如果您收到该地址的响应,它将正确绑定。