zoukankan      html  css  js  c++  java
  • 使IIS Express支持其他网络客户端访问

    今天尝试利用Android客户端Web浏览器访问VS2012 IIS Express调试中的Web应用,发现这个IIS Express仅支持localhost主机名地址访问。

    上网搜索找到解决方案,几经尝试最后结果如下:

    在UsersYourNameMy DocumentsIISExpressconfigapplicationhost.config文件中找到正在调试的Web应用的设置行:

    <site name="HengShen.Pts.Web" id="2">
        <application path="/" applicationPool="Clr4IntegratedAppPool">
            <virtualDirectory path="/" physicalPath="C:UsersVMUserDocumentsVisual Studio 2012ProjectsPtsSolutionHengShen.Pts.Web" />
        </application>
        <bindings>
            <binding protocol="http" bindingInformation="*:40000:localhost" />
        </bindings>
    </site>

    将倒数3行的localhost删掉,冒号要保留。

    然后,关闭这台电脑的防火墙(我是在VMWare Fusion虚拟机中做开发,关闭防火墙对安全没啥影响。)

    或者对防火墙做相应设置,可以参考下面的网址:

    http://johan.driessen.se/posts/Accessing-an-IIS-Express-site-from-a-remote-computer

    http://stackoverflow.com/questions/4866547/binding-iis-express-to-an-ip-address

    >>>>> 版权没有 >>>>> 欢迎转载 >>>>> 原文地址 >>>>> http://www.cnblogs.com/jlzhou >>>>> 雄鹰在鸡窝里长大,就会失去飞翔的本领,野狼在羊群里成长,也会爱上羊而丧失狼性。人生的奥妙就在于与人相处。生活的美好则在于送人玫瑰。和聪明的人在一起,你才会更加睿智。和优秀的人在一起,你才会出类拔萃。所以,你是谁并不重要,重要的是,你和谁在一起。
  • 相关阅读:
    ucos信号量
    uC/OSII 常用函数参考手册
    GPS NMEA0183协议详解
    为sql server 表数据生成创建的储存过程(生成insert 脚本)
    安装SQL2008,提示删除SQL2005Express工具的解决方法
    intel hex 文件格式解密
    C语言:I/O
    C语言基础
    摆脱IDE进行时. . .
    对WinForm的App.config文件进行加密
  • 原文地址:https://www.cnblogs.com/605395451/p/4203024.html
Copyright © 2011-2022 走看看