您好,欢迎来到化拓教育网。
搜索
您的当前位置:首页IISExpress 开放局域网访问

IISExpress 开放局域网访问

来源:化拓教育网

1. 设置 IISExpress 配置文件 applicationhost.config

    将属性  bindingInformation="*:7632:localhost* 改为 bindingInformation="*:7632:*“

<site name="Com.Huidu.WebSite" id="2">
   <application path="/" applicationPool="Clr4IntegratedAppPool">
     <virtualDirectory path="/" physicalPath="E:\Subversion\hdp\branches\trunk-Austrialia\Com.Huidu.WebSite\Com.Huidu.WebSite" />
   </application>
   <bindings>
     <binding protocol="http" bindingInformation="*:7632:*" />
  </bindings>
</site>

 

2. 以管理员身份进入终端并执行以下命令

netsh http add urlacl url=http://*:7632/ user="NT AUTHORITY\INTERACTIVE"

netsh advfirewall firewall add rule name="IISExpressWeb" dir=in protocol=tcp localport=7632 profile=private remoteip=localsubnet action=allow

 

配置完成后通过 VS 调试 web 应用时就可通过局域网访问了。

 

3. 若需要撤销局域网访问功能,可在命令行中执行以下指令:

netsh http delete urlacl url=http://*:7632/
netsh advfirewall firewall delete rule name="IISExpressWeb"

 

转载于:https://www.cnblogs.com/ouuy/p/5821688.html

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo9.cn 版权所有 赣ICP备2023008801号-1

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务