How to enable external request in IIS Express?

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

    You may try setting up port forwarding instead of trying to modify your IIS Express config, adding new HTTP.sys rules or running Visual Studio as an Admin.

    Basically you need to forward the IP:PORT your website runs at to some other free port on your machine but on the external network adapter, not localhost.

    The thing is that IIS Express (at least on Windows 10) binds to [::1]:port meaning it listens on IPv6 port. You need to take this into account.

    Here is how I made this work - http://programmingflow.com/2017/02/25/iis-express-on-external-ip.html

    Hope it helps.

提交回复
热议问题