网络穿透工具--钉钉HTTP穿透

官方网站:https://ding-doc.dingtalk.com/doc#/kn6zg7/hb7000

内网穿透工具可以实现将一个公网域名映射到本地的localhost域名。

 

下载工具:

git clone https://github.com/open-dingtalk/pierced.git

mac:

cd mac_64
chmod 777 ./ding
./ding -config=./ding.cfg -subdomain=abcde 8080

Windows:

cd windows_64
ding -config=./ding.cfg -subdomain=abcde 8080

启动完客户端后,你访问http://abcde.vaiwan.com/xxxxx都会映射到 http://127.0.0.1:8080/xxxxx

修改abcde 为你自己想要的域名,8080为你自己的端口

注:

1.你需要访问的域名是http://abcde.vaiwan.com/xxxxx 而不是http://abcde.vaiwan.com:8080/xxxxx

2.你启动命令的subdomain参数有可能被别人占用,尽量不要用常用字符,可以用自己公司名的拼音,例如:alibaba、dingding等。

3.可以在本地起个http-server服务,放置一个index.html文件,然后访问http://abcde.vaiwan.com/index.html测试一下。

 

posted @ 2020-06-18 11:27  一颗心的石头  阅读(1219)  评论(0编辑  收藏  举报