Skip to content

Commit b34b48c

Browse files
committed
README.md
1 parent 38de114 commit b34b48c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
# remote_bind
22
将本地服务映射到公网
3+
4+
## example
5+
在服务器 `124.221.61.142``1234` 端口上运行server,并设置密码为 `passwd`
6+
```
7+
$ ./server 1234 passwd
8+
server started on 124.221.61.142:1234
9+
```
10+
11+
在局域网主机上运行客户端,将 `127.0.0.1:3389` 服务映射到 `124.221.61.142:13389` 上:
12+
```
13+
$ ./client 124.221.61.142:1234 13389 passwd 127.0.0.1:3389
14+
Connecting to 124.221.61.142:1234
15+
连接服务器成功! 服务 127.0.0.1:3389 已暴露在公网 124.221.61.142:13389
16+
```

0 commit comments

Comments
 (0)