文章出處

打開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


文章列表




Avast logo

Avast 防毒軟體已檢查此封電子郵件的病毒。
www.avast.com


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()