win10/win7下vs2013自帶IISExpress支持局域網訪問


打開IISExpress安裝目錄(C:\Users\Administrator\Documents\IISExpress\config),一般為我的文檔下,用記事本打開applicationhost.config文件,找到:
<bindings>
    <binding protocol="http" bindingInformation="*:58975:localhost" />
</bindings>

在binding下邊添加一行,如:

<bindings>
    <binding protocol="http" bindingInformation="*:19818:localhost" />
    <binding protocol="http" bindingInformation="*:19818:202.196.187.123" /><!-- 加入此行 -->
</bindings>
添加完后保存,然后重啟iisexpress,按照上述步驟,在win7操作系統下已經可以正常訪問,但是經測試win10下居然沒有反應,后翻閱資料才發現(懂得太少),需要運行下邊的語句:
打開運行窗口,輸入CMD,enter,然后執行下邊的命令即可。
netsh http add urlacl url=http://202.196.187.123:58975/ user=everyone 

上述202.196.187.123為本機ip地址,請根據自己的電腦進行修改。

有問題可以聯系我,我的郵箱是:yxxrui@163.com,我的網址是:http://www.yxxrui.cn


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM