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    


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM