How to enable external request in IIS Express?

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

    There's a blog post up on the IIS team site now explaining how to enable remote connections on IIS Express. Here is the pertinent part of that post summarized:

    On Vista and Win7, run the following command from an administrative prompt:

    netsh http add urlacl url=http://vaidesg:8080/ user=everyone

    For XP, first install Windows XP Service Pack 2 Support Tools. Then run the following command from an administrative prompt:

    httpcfg set urlacl /u http://vaidesg1:8080/ /a D:(A;;GX;;;WD)

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2020-11-22 02:49

    For me using this, relatively simple, and straight forward:

    Download the Visual Studio Extension by searching for 'Conveyor' in the Extensions dialog. Then just install.

    form: https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti

    0 讨论(0)
  • 2020-11-22 02:49

    [project properties dialog]

    For development using VisualStudio 2017 and a NetCore API-project:

    1) In Cmd-Box: ipconfig /all to determine IP-address

    2a) Enter the retrieved IP-address in Project properties-> Debug Tab

    2b) Select a Port and attach that to the IP-address from step 2a.

    3) Add an allow rule in the firewall to allow incoming TCP-traffic on the selected Port (my firewall triggered with a dialog: "Block or add rule to firewall"). Add will in that case do the trick.

    Disadvantage of the solution above:

    1) If you use a dynamic IP-address you need to redo the steps above in case another IP-address has been assigned.

    2) You server has now an open Port which you might forget, but this open port remains an invitation for unwanted guests.

    0 讨论(0)
  • 2020-11-22 02:52

    The accepted answer to this question is a guide for getting IIS Express to work with webmatrix. I found this guide more useful when trying to get it to work with VS 2010.

    I just followed steps 3 & 4 (running IIS Express as administrator) and had to temporarily disable my firewall to get it working.

    0 讨论(0)
  • 2020-11-22 02:53

    I did all of these steps and nothing helped me. And what I need, it's just to run my app via IIS Express...

    Hope it helps.

    0 讨论(0)
提交回复
热议问题