xunyixiangchao / remote-bind

将本地服务映射到公网

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remote-bind

将本地服务映射到公网

示例

在服务器 124.221.61.1421234 端口上运行server,并设置密码为 passwd

$ ./server 1234 passwd
server started on 124.221.61.142:1234

在局域网主机上运行客户端,将 127.0.0.1:3389 服务映射到 124.221.61.142:13389 上:

$ ./client 124.221.61.142:1234 13389 passwd 127.0.0.1:3389
Connecting to 124.221.61.142:1234
连接服务器成功! 服务 127.0.0.1:3389 已暴露在公网 124.221.61.142:13389

About

将本地服务映射到公网


Languages

Language:Rust 99.5%Language:C++ 0.5%