使用 public IP 地址绑定应用程序
Bind an application with public IP address
我在我的系统上开发了一个 ASP.Net MVC 应用程序。我想通过使用以下命令将我的应用程序与 public 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 文件中,localhost 必须更改为您的计算机名称。
我在我的系统上开发了一个 ASP.Net MVC 应用程序。我想通过使用以下命令将我的应用程序与 public 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 文件中,localhost 必须更改为您的计算机名称。