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

后端 未结 5 933
忘了有多久
忘了有多久 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:12

    CygWin Solution (no proxy install needed)

    ssh USER@OTHER_HOST -R IIS_PORT:localhost:IIS_PORT
    

    replace USER, OTHER_HOST and IIS_PORT. Now you can browse with your OTHER_HOST to the testpage on localhost:IIS_PORT. This enables you the ability to test your stuff on remote Linux hosts (for example).

提交回复
热议问题