-
First, register an account on this site and click register
-
After logging in, click on the left to buy a tunnel, free or paid
3. Select the tunnel protocol as needed, here is a web demo, buy the tunnel
-
Create web services on this machine, such as nginx/apache/iis, etc., default port 80
Make sure http://127.0.0.1 is accessible, like
5. On natapp.cn , download the corresponding client according to your local machine, such as downloading the Windows 64-bit client
6. After downloading, unzip it to any directory to get natapp.exe
7. Get authtoken In the background of the website, at my tunnel, you can see the tunnel you just purchased
Click Copy to get authtoken This authtoken is your tunnel login credentials. For example, the authtoken obtained here is 9ab6b9040a624f40
8. Run natapp
natapp supports two modes of operation
a) config.ini method (recommended)
Download different config.ini files according to the operating system to the same level directory of natapp.exe just downloaded. For details
, please fill in the authtoken obtained in step 7 (do not fill in other places), and then save
Under windows, double-click natapp.exe directly.
Under Linux/Mac, you need to give execute permission first
chmod a+x natapp
and then run
./natapp
b) cmd -authtoken= 参数方式运行.
windows ,点击开始->运行->命令行提示符 后进入 natapp.exe的目录
运行
natapp -authtoken=9ab6b9040a624f40
linux ,同样给予可执行权限之后,运行
./natapp -authtoken=9ab6b9040a624f40
注意参数输入正确性,不要有多余的空格等!
9.运行成功,都可以得到如下界面:
Tunnel Status Online 代表链接成功
Version 当前客户端版本,如果有新版本,会有提示
Forwarding 当前穿透 网址 或者端口
Web Interface 是本地Web管理界面,可在隧道配置打开或关闭,仅用于web开发测试
Total Connections 总连接数
Avg Conn Time 0.00ms 这里不代表,不代表,不代表 延时,需要注意!
10.将natapp分配的网址(上图Forwarding ),鼠标选定然后复制下来(选定之后单击鼠标右键),在浏览器中访问,可以看到内网穿透成功了!
来源:https://natapp.cn/article/natapp_newbie