Can't access Visual Studio project from IP, only http://localhost

后端 未结 5 923
忘了有多久
忘了有多久 2021-01-17 19:25

I\'m running a project in visual studio. I hit run and it launches IE pointing at http://localhost:1267

If I try to visit http://10.211.55.3:1267

5条回答
  •  甜味超标
    2021-01-17 20:09

    If you are using the Visual Studio Development Server (and not IIS,) your server will only bind to localhost. You can not use another IP address to access it. If you must, you can work around this with proxies.

    If you are running IIS, make sure that your web server is binding to all addresses (0.0.0.0)

提交回复
热议问题