普通的FRP的TCP代理,需要在服务器上开启一个远程端口,使用STCP不需要开启远程端口
使用STCP功能,需要开启三个软件,比正常的TCP多了一个
1 服务端 ,运行 frps
[common]
bind_addr = 0.0.0.0
bind_port = 8888
token = XXXXXX
2 被访问者,运行 frpc
[common]
server_addr = 127.0.0.1 ##假设被访问者电脑即服务器电脑.如果不是,需要在此更换为远程服务器IP
server_port = 8888
token = XXXXXX
[postgres]
type = stcp
server_name = postgres
sk = YYYYYY
local_ip = 127.0.0.1
local_port = 5432
3 访问者
[common]
server_addr = 远程服务器的IP
server_port = 8888
token = Wls20230915
[postgres]
type = stcp
role = visitor
server_name = postgres
sk = YYYYYY
bind_addr = 127.0.0.1
bind_port = 5432