Skip to content

用 frp 暴露内网服务

服务端配置

frps.ini

ini
[common]
bind_port = 7000
vhost_http_port = 9000
[common]
bind_port = 7000
vhost_http_port = 9000
bash
./frps -c ./frps.ini
./frps -c ./frps.ini

客户端配置

frpc.ini

ini
[common]
server_addr = x.x.x.x
server_port = 7000

[web]
type = http
local_ip = 127.0.0.1
local_port = 80
remote_port = 9000
use_compression = true
custom_domains = x.x.x.x
[common]
server_addr = x.x.x.x
server_port = 7000

[web]
type = http
local_ip = 127.0.0.1
local_port = 80
remote_port = 9000
use_compression = true
custom_domains = x.x.x.x
bash
./frpc -c ./frpc.ini
./frpc -c ./frpc.ini

使用

http://x.x.x.x:9000

最后编辑时间:

Version 4.0 (framework-1.0.0-rc.20)