How to enable external request in IIS Express?

前端 未结 26 1205
借酒劲吻你
借酒劲吻你 2020-11-22 01:55

How can I enable remote requests in IIS Express? Scott Guthrie wrote that is possible but he didn\'t say how.

26条回答
  •  醉酒成梦
    2020-11-22 02:49

    Nothing worked for me until I found iisexpress-proxy.

    Open command prompt as administrator, then run

    npm install -g iisexpress-proxy
    

    then

    iisexpress-proxy 51123 to 81
    

    assuming your Visual Studio project opens on localhost:51123 and you want to access on external IP address x.x.x.x:81

    Edit: I am currently using ngrok

提交回复
热议问题