首页 > 其他 > 详细

IISExpress配置使其能通过IP访问方法

时间:2015-03-05 16:51:06      阅读:193      评论:0      收藏:0      [点我收藏+]

环境说明:

本机IP:192.168.2.100;Web端口:11843

 

步骤一

打开[我的文档]\IISExpress\config\applicationhost.config,找到下面的代码块

<site name="Web" id="1">

        <application path="/" applicationPool="Clr4IntegratedAppPool">

                    <virtualDirectory path="/" physicalPath="E:\Web" />

        </application>

        <bindings>

                    <binding protocol="http" bindingInformation="*:11843:localhost" />

         </bindings>

</site>

 

步骤二

方法一、在 <bindings></bindings>

把<binding protocol="http" bindingInformation="*:11843:localhost" />

改成自己的IP地址

<binding protocol="http" bindingInformation="*: 11843:192.168.2.100" />

 方法二、也可以增加<binging>

 <binding protocol="http" bindingInformation="*: 11843:127.0.0.1" />

 <binding protocol="http" bindingInformation="*: 11843:192.168.2.173" />

 

步骤三、如果还是不能通过IP访问,重起电脑就可以了。

IISExpress配置使其能通过IP访问方法

原文:http://www.cnblogs.com/liujh/p/4315927.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!