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

  • 相关阅读:
    AES加解密
    redis HyperLogLog使用
    vi常用操作
    redis string使用
    用jdk命令定位java应用问题
    用户态、内核态及零拷贝
    缓存穿透与雪崩
    ReentrantLock、Semaphore、AQS
    redis list使用
    不同数据库取并集、交集、差集
  • 原文地址:https://www.cnblogs.com/jlzhou/p/3512535.html
Copyright © 2011-2022 走看看