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 >>>>> 雄鹰在鸡窝里长大,就会失去飞翔的本领,野狼在羊群里成长,也会爱上羊而丧失狼性。人生的奥妙就在于与人相处。生活的美好则在于送人玫瑰。和聪明的人在一起,你才会更加睿智。和优秀的人在一起,你才会出类拔萃。所以,你是谁并不重要,重要的是,你和谁在一起。
  • 相关阅读:
    282. Expression Add Operators
    281. Zigzag Iterator
    280. Wiggle Sort
    How Not to Crash #2: Mutation Exceptions 可变异常
    Moving Swiftly
    How to Use updateConstraints
    Don’t Put View Code Into Your View Controller别把View创建的代码放在VC中
    Where-To-Put-The-Auto-Layout-Code
    iOS five years[转]
    ResponderChain note
  • 原文地址:https://www.cnblogs.com/605395451/p/4203024.html
Copyright © 2011-2022 走看看