Port forwarding on Windows 7

后端 未结 5 1892
悲哀的现实
悲哀的现实 2021-02-03 12:04

How do I redirect an incomming request on port xxx to localhost:yyy on windows 7?

Development Server (vs 2008) only allow access from localhost which isnt good enough. I

5条回答
  •  甜味超标
    2021-02-03 12:37

    If this really is for some testing, you could create a server which listens on a port, and when it receives an incoming connection spawns a thread that opens a connection to the actual local server, and afterward just waits for data to come in either end and shuffle it along to the other end. If either socket closes, the worker thread would terminate. This is obviously not a scalable solution, but for testing it should easily do the trick.

提交回复
热议问题