VS的IISExpress配置通过IP访问程序

Posted 博客园站长

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VS的IISExpress配置通过IP访问程序相关的知识,希望对你有一定的参考价值。

打开C:\\Users\\用户\\Documents\\IISExpress\\config\\applicationhost.config

获取本地VS项目运行起来的端口,比如

然后在文本里搜索  24395 

 

</application>
<bindings>
<binding protocol="http" bindingInformation="*:24395:localhost" />

<binding protocol="http" bindingInformation="*:24395:192.1.xxx.xxx" />    //新增一条
</bindings>
</site>

 

管理员运行CMD:执行netsh http add urlacl url=http://192.1.xxx.xxx:21459/ user=everyone    

以上是关于VS的IISExpress配置通过IP访问程序的主要内容,如果未能解决你的问题,请参考以下文章

vs直接IP访问运行项目

vs2013把localhost改为ip

IIS小技巧将IIS Express改成可以通过ip地址访问

通过 iis或者本地IP 调试代码

VS 通过局域网访问调试状态下的web应用程序

配置 IIS Express 以实现对 VS2010 项目的外部访问