Ngrok is a NAT penetrating software, similar to peanut shell also provides this service ngrok website :ngrok.com/ download ngrok client run
$ ./ngrok http 8080Copy the code
The software running page is displayed
Ngrok by @Inconshreveable (Ctrl+C to quit) Session Status Online Version 2.2.8 Region United States (US) Web Interface http://127.0.0.1:4040 Forwarding http://79356a4d.ngrok.io - > localhost: 8080 Forwarding https://79356a4d.ngrok.io - > Localhost :8080 Connections TTL OPn rT1 Rt5 P50 P90 00 0.00 0.00 0.00 0.00Copy the code
You can map local port 8080 to http://79356a4d.ngrok.io, and access port 8080 on the Intranet from the Internet