云中漫步 发表于 2017-2-12 11:20:37

IIS Express配置使通过IP访问

  打开[我的文档]\IISExpress\config\applicationhost.config

  找到下面的代码块
  在 <bindings></bindings>中仿照

<binding protocol="http" bindingInformation="*:51898:localhost" />
  把localhost改为你的ip地址,改完后效果如下:

<site name="Web" id="13">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="E:\ASP.NET\超凡装饰\cfzs\Web" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:51898:localhost" />
<binding protocol="http" bindingInformation="*:51898:192.168.0.101" />
</bindings>
</site>
页: [1]
查看完整版本: IIS Express配置使通过IP访问