Fast implementation of a port forward in Java

前端 未结 4 1946
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 16:36

I have build a simple application that opens a ServerSocket, and on connection, it connects itself to another server socket on a remote machine. To implement port forwarding

4条回答
  •  忘掉有多难
    2020-12-05 17:34

    Take a look at tcpmon. Its purpose is to monitor tcp data, but it also forwards to a different host/port.

    And here is some code for port forwarding taken from a book (it's not in English, so I'm pasting the code rather than giving a link to the book e-version):

提交回复
热议问题