Skip to content

使用FRP创建内网穿透服务

使用内网穿透是调试微信开发的最好方案

什么是FRP

FRP 是一个内网穿透方案

地址: FRP

创建内网web服务

服务端

  1. 在服务器下载项目最新release版本
  2. 配置frps.ini文件
  3. 运行 ./frps -c frps.ini

!> 注意, 绑定80端口在linux系统中需要用root账户

[common]
bind_port = 7000
vhost_http_port = 80

客户端

  1. 在本地下载项目最新release版本
  2. 配置frpc.ini
  3. 运行服务 ./frps -c frps.ini
[common]
server_addr = xx.xx.xx.xx // 你的服务器地址
server_port = 7000

[web]
type = http
local_ip = 127.0.0.1
local_port = 3000
custom_domains = xxx.com // 你的域名

域名

  1. 把域名做A到xx.xx.xx.xx

Released under the ISC License.