Ngrok deploys local code so that the Internet can be accessed. ngrok deploys

Source: Internet
Author: User

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.