Use ngrok to publish a local Intranet project to the Internet

Source: Internet
Author: User

During the development process, you often encounter the need to publish your local project to the Internet. Because it is in an Intranet environment that the Internet users cannot access, it is troublesome to map ports, sometimes there is no way to perform port ing. At this time, you can use ngrok to publish your project to the Internet.


First download ngrok:

Https://ngrok.com/


Download and obtain an ngrok executable file,


Simplest use:

ngrok 80

In this way, port 80 of the local machine is mapped to the Internet,

Access by other users:

Http://7912fb1b.ngrok.com

Is it easy to access the local project?


Ngrok also has some other functions that can map the TCP protocol:

ngrok -proto=tcp 22

In this way, port 22 of the local machine is mapped to the Internet. However, these functions require logon,

You can register a user in ngrok and then give you a code. You can use the code assigned by ngrok to run these functions once.

ngrok -authtoken 7PZNNsT-qJHAPl-uVcuE 80

The-authtoken parameter is not required for next use.

ngrok 80

You can.



Use ngrok to publish a local Intranet project to the Internet

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.