Ngrok deploys local code so that the Internet can be accessed. ngrok deploys
1. What is ngrok?
Ngrok is a reverse proxy that creates a secure tunnel from a public endpoint to a locally running web service. ngrok captures and analyzes all traffic over the tunnel for later inspection and replay.
Ngrok is a reverse proxy that can establish a security tunnel from the public network to a local web service. Ngrok captures and analyzes all the data that passes through it for subsequent checks and replay.
2. Use ngrok
1. Visit the ngrok Official Website
First visit ngrok official website https://ngrok.com/register an account, after registration can get your own account key for subsequent binding operations.
Authtoken |
82GkmZCUpRT1Z4uMLCBZ9_6MqWSeGVuXGU9zeBvFrzv |
2. Click the download link to download ngrok.
Put ngrok.exe in the d:/example folder, and enter the following command.
1 cd d:/example2 3 ngrok authtoken 82GkmZCUpRT1Z4uMLCBZ9_6MqWSeGVuXGU9zeBvFrzv4 5 ngrok http 8080
Note:
Line 2: Switch this command to the ngrok installation directory.
Row 3rd: when using ngrok for the first time, you must first save the key obtained on the ngrok official website to the configuration file (ngrok. yml. Saved to C: \ Users \ current user name/. ngrok2/ngrok. yml by default.
Row 5th: This command indicates that ngrok listens to all web applications with port 8080 locally. And generate a network address that can be accessed from the Internet. As shown in
3. Access the generated proxy address
Http://bcc20fd4.ngrok.io
Or
Https://bcc20fd4.ngrok.io