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