How does ngrok enable WeChat to access the local domain name through port 80, ngrok80

Source: Internet
Author: User

How does ngrok enable access to the local domain name through port 80, ngrok80

During the sending process, we need to have a domain name with port 80 for testing. It is very troublesome to publish the domain name to the service and debugging is not good (I am using asp.net for development ).

Ngrok, a powerful tool for Intranet penetration, can solve this problem.

Step 1 at URL: https://ngrok.com/

Download your desired version (windows)

Step 2: Decompress the package to a root directory for later use.

Step 3, register ngrok, https://dashboard.ngrok.com/user/signup

Step 3: log in after registration and take the token in the red box (my own token is hidden ~~)

 

Step 4: run the cmd command to open the dos window and go to the ngrok folder of drive F.

Figure 4 (dos window)

Step 5: Enter the authtoken obtained in the preceding logon. The input method is as follows:

Step 6: After you press enter to execute the command, you will be prompted how to use it. Follow the prompts and enter the command. The ngrok domain name is 80,

 

Step 7: Press enter to display the following prompt, even if it is successful, http: // domain name .ngrok.sapronlee.com is the domain name used to access your local machine from the Internet,

 

Note: Do not turn off dos when using it. If it is turned off, it will be invalid.

 

Now, you can use this domain name to access the local machine. When you configure a local website on iis, a program developed by asp.net is directly released to the local iis, and port 80 and the domain name are bound, then, bind it to the public account menu or the development and test account menu to access it. You can also use the vs tool to add a process for debugging.

Please advise me if something is wrong ~~~~

The following is a friend's public account on technology. If you are interested, take a look. You can leave a message on the public account to obtain related resources or ask other questions.If you have excellent original technical articles, you can contribute articles and share them with others to earn a reward!

Scan to get more development resources:

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.