Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
develon2015 committed Mar 29, 2022
1 parent 38de114 commit b34b48c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# remote_bind
将本地服务映射到公网

## example
在服务器 `124.221.61.142``1234` 端口上运行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
```

0 comments on commit b34b48c

Please sign in to comment.