使用Natapp将内网穿透到外网

问题:

要解决微信本地开发,一个关键的问题是能够把本地的IP地址映射到公网上去

Natapp的使用

 

一:注册natapp后,网页中配置配置自定义本地端口号,在natapp目录下运行入下命令

natapp -authtoken=xxxxx

http://3c8db5aa.ngrok.natapp.cn/项目名称/

就可以使用这个外网地址访问本地的服务

 

二:下载客户端,直接运行,默认使用80端口访问本地的应用服务器,

需要将本地的应用服务器的端口号改为80

 

Natapp隧道的配置:

 

微信中服务器配置:

 

参考博文:

https://blog.csdn.net/xyang81/article/details/52141881

https://blog.csdn.net/differ_c/article/details/54880316

https://blog.csdn.net/zzwwjjdj1/article/details/52221493

使用ngrok的博文:

https://blog.csdn.net/achenyuan/article/details/71106689

https://www.jianshu.com/p/c2e4ec6e0b23

https://blog.csdn.net/liuxiyangyang/article/details/22922265

使用Sunny-Ngrok的官网:

https://www.ngrok.cc/

posted @ 2019-07-25 03:17  燃烧的竹子  阅读(329)  评论(0编辑  收藏  举报