文章出處
文章列表
打開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
文章列表
全站熱搜