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

年夜雪

关注

阅读 45

2022-06-30

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

获取本地VS项目运行起来的端口,比如VS的IISExpress配置通过IP访问程序_搜索

然后在文本里搜索  24395 

VS的IISExpress配置通过IP访问程序_搜索_02

 

</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    

精彩评论(0)

0 0 举报