zoukankan      html  css  js  c++  java
  • IISExpress 开放局域网访问

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

        VS2015 :这个配置文件 在工程目录下的 .vs/config 隐藏目录

        其他版本 :在用户目录中的 IISExpress 文件夹下

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

    <site name="Com.Huidu.WebSite" id="2">
       <application path="/" applicationPool="Clr4IntegratedAppPool">
         <virtualDirectory path="/" physicalPath="E:Subversionhdpranches	runk-AustrialiaCom.Huidu.WebSiteCom.Huidu.WebSite" />
       </application>
       <bindings>
         <binding protocol="http" bindingInformation="*:7632:*" />
      </bindings>
    </site>

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

    netsh http add urlacl url=http://*:7632/ user="NT AUTHORITYINTERACTIVE"
    
    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"
  • 相关阅读:
    使用RAID与LVM磁盘阵列技术
    挂载硬件设备和磁盘容量配额
    文件存储结构(FHS标准)物理设备命名规则(udev)和文件系统
    文件访问控制列表
    逻辑漏洞
    web渗透思维导图
    常见漏洞简单测试整理
    Python知识点图片
    python控制流
    Python小知识点+保留字
  • 原文地址:https://www.cnblogs.com/ouuy/p/5821688.html
Copyright © 2011-2022 走看看