windows frp内网穿透

安装简介

下载地址 : 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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值