实现比较简单,每个连接开一个线程用 nio 进行中继
项目地址: https://github.com/develon2015/remote_bind
在服务器 124.221.61.142:1234 上部署了服务端,密码:passwd ,欢迎下载客户端大家来测试
https://github.com/develon2015/remote_bind/releases/download/1.0/client.exe
.\client.exe 124.221.61.142:1234 要申请的端口 passwd 127.0.0.1:本地服务端口