diff --git a/README.md b/README.md index 7125843..beb9439 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Put `frpc` and `frpc.ini` onto your server B in LAN (that can't be connected fro ### Access your computer in LAN by SSH -1. Modify `frps.ini` on server A: +1. Modify `frps.ini` on server A and set the `bind_port` to be connected to frp clients: ```ini # frps.ini @@ -117,6 +117,8 @@ Put `frpc` and `frpc.ini` onto your server B in LAN (that can't be connected fro remote_port = 6000 ``` +Note that `local_port` (listened on client) and `remote_port` (exposed on server) are for traffic goes in/out the frp system, whereas `server_port` is used between frps. + 4. Start `frpc` on server B: `./frpc -c ./frpc.ini` diff --git a/README_zh.md b/README_zh.md index 9b7974e..b4851f7 100644 --- a/README_zh.md +++ b/README_zh.md @@ -89,7 +89,7 @@ master 分支用于发布稳定版本,dev 分支用于开发,您可以尝试 ### 通过 ssh 访问公司内网机器 -1. 修改 frps.ini 文件,这里使用了最简化的配置: +1. 修改 frps.ini 文件,这里使用了最简化的配置,设置了 frp 服务器端接收客户端流量的端口: ```ini # frps.ini @@ -101,7 +101,7 @@ master 分支用于发布稳定版本,dev 分支用于开发,您可以尝试 `./frps -c ./frps.ini` -3. 修改 frpc.ini 文件,假设 frps 所在服务器的公网 IP 为 x.x.x.x; +3. 修改 frpc.ini 文件,假设 frps 所在服务器的公网 IP 为 x.x.x.x: ```ini # frpc.ini @@ -116,6 +116,9 @@ master 分支用于发布稳定版本,dev 分支用于开发,您可以尝试 remote_port = 6000 ``` +注意,`local_port`(客户端侦听)和 `remote_port`(服务器端暴露)是用来出入 frp 系统的两端,`server_port` 则是服务器用来与客户端通讯的。 + + 4. 启动 frpc: `./frpc -c ./frpc.ini`