安装简介
下载地址 : Frp下载
下载ZIP格式.
解压完成后.文件夹内有frps.exe(服务端) & frpc.exe(客户端)
接下来需要做的就是配置
Server端
1 : 配置
打开 frps.ini
[common]
bind_port = 7002 //与客户端连接端口 (自定义)
max_pool_count = 5 //最大连接数(自定义)
authentication_timeout = 900 //超时时间(自定义)
token = 123123123 //身份验证(自定义)
[web-1]
listen_port = 6064 //访问http时使用的端口(自定义)
[web-2]
listen_port = 6065 //访问http时使用的端口(自定义)
[web-2]
listen_port = 6066 //访问http时使用的端口(自定义)
2 : 启动
1 打开cmd
2 cd 到所在目录
3 执行 : frps.exe -c frps.ini
Client端-1
1 : 配置
打开 frpc.ini
[common]
server_addr = xxx.xxx.xxx.xxx //公网IP
server_port = 7002 //与公网建立连接的端口号
token = 123123123 //身份验证与公网相同
[web-1]
type = tcp //协议(使用tcp是不使用域名直接IP加端口号便可以访问web)
local_ip = 127.0.0.1 //本地IP地址
local_port = 8080 //本地web端口号
remote_port = 6064 //和服务端相同
2 : 启动
1 打开cmd
2 cd 到所在目录
3 执行 : frpc.exe -c frpc.ini
Client端-2
1 : 配置
打开 frpc.ini
[common]
server_addr = xxx.xxx.xxx.xxx //公网IP
server_port = 7002 //与公网建立连接的端口号
token = 123123123 //身份验证与公网相同
[web-2]
type = tcp //协议(使用tcp是不使用域名直接IP加端口号便可以访问web)
local_ip = 127.0.0.1 //本地IP地址
local_port = 8080 //本地web端口号
remote_port = 6065 //和服务端相同
2 : 启动
1 打开cmd
2 cd 到所在目录
3 执行 : frpc.exe -c frpc.ini
Client端-3
1 : 配置
打开 frpc.ini
[common]
server_addr = xxx.xxx.xxx.xxx //公网IP
server_port = 7002 //与公网建立连接的端口号
token = 123123123 //身份验证与公网相同
[web-2]
type = tcp //协议(使用tcp是不使用域名直接IP加端口号便可以访问web)
local_ip = 127.0.0.1 //本地IP地址
local_port = 8080 //本地web端口号
remote_port = 6066 //和服务端相同
2 : 启动
1 打开cmd
2 cd 到所在目录
3 执行 : frpc.exe -c frpc.ini