How to enable external request in IIS Express?

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

    The simplest and the coolest way I found was to use (it takes 2 minutes to setup):

    https://ngrok.com/

    It will work with anything running on localhost. Just signup, run little excutable and whatever you run on localhost gets public URL you can access from anywhere.

    This is good for showing stuff to your remote team mates, no fiddling with IIS setup or firewalls. Want to stop access just terminate executable.

    ngrok authtoken xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    
    ngrok http -host-header=localhost 89230
    

    assuming that 89230 is your IIS Express port

    You can also run multiple ports even on free plan

提交回复
热议问题