How to enable external request in IIS Express?

前端 未结 26 1854
借酒劲吻你
借酒劲吻你 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:45

    I remember running into the same problems while trying this workflow a few months ago.

    Which is why I wrote a simple proxy utility specifically for this kind of scenario: https://github.com/icflorescu/iisexpress-proxy.

    Using the IIS Express Proxy, it all becomes quite simple – no need to “netsh http add urlacl url=vaidesg:8080/ user=everyone” or to mess up with your “applicationhost.config”.

    Just issue this in command prompt:

    iisexpress-proxy 8080 to 3000

    …and then you can point your remote devices to http://vaidesg:3000.

    Most of the times simpler IS better.

提交回复
热议问题