0
点赞
收藏
分享

微信扫一扫

小皮球ngrok做内网穿透

晚安大世界 2022-04-13 阅读 45
网络

小皮球ngrok做内网穿透

1.下载注册客户端

登录https://manager.xiaomiqiu.com/,首页选择下载适合自己的客户端,我的是windows64版的,所以直接选择改客户端下载,下载完成,解压到自己的目录中

2.获取token

token位置如下图
在这里插入图片描述

3.修改ngrok.conf配置文件

将token粘贴至ngrok.conf文件中的auth_token,修改对应的值,其中remote_pot和http中的端口对应我们自己对外开放的端口值,subdomain可任意配置

server_addr: "ngrok2.xiaomiqiu.cn:5432"
trust_host_root_certs: true
inspect_addr: disabled
auth_token: "9b5ZZ239c7Z5463A83f3ecbee2358983"
tunnels:
  httptun:
    remote_port: 80
    subdomain: herong
    proto:
      http: 127.0.0.1:80

4.启动ngrok

cmd命令行进入目录,执行以下命令

ngrok -config=ngrok.cfg -subdomain herong 80

5.运行forwarding行的地址

举报

相关推荐

0 条评论