您的位置:首页 > 运维架构 > 网站架构

iisexpress局域网内调试网站

2016-04-19 16:12 671 查看
1、找到IISExpress目录

IISExpress\config\applicationhost.config(注:如果使用vs2015则更改解决方案目录下的.vs文件夹中的该文件)

<site name="RMS.Web" id="18">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\workgroup\Web" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:61730:localhost" />
</bindings>
</site>


2、加上下面配置文件中黄色标记的代码

<site name="RMS.Web" id="18">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\workgroup\RMS.Web" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:61730:localhost" />
<binding protocol="http" bindingInformation="*:61730:*" />
</bindings>
</site>


3、用管理员打开VS,运行程序

4、在局域网内的另一台机器上,打开浏览器,输入ip地址加端口号,从上面配置文件中可以看到程序端口号为:61730,现在你可以正常访问iisexpress中的网站了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: