Super simple network penetration ngrok

What is a network penetration?

First of all, we live in a network from the application can be divided into internal networks and the Internet;
intranet is your own network environment, you can access it, such as your local localhost tests carried out;
outside the network becomes evident you look at these website pages, videos, etc. are outside the network.
So what is inside the network through it? Simply means that by accessing an Internet domain address, and then penetrate into your internal network addresses.

Network penetration What's the use?

[Scenario 1]

Suppose you write a function codes, local tests have been OK, at this time, you are thousands of miles away to get a friend to help you test, how would you do it?

Plan A: If your friends know the code, you can put the code package sent to him and let him test locally;

Plan B: If your friends do not understand the code, you can set up a server and put it on top of the server and let him test the external network access through;

Whether or Scheme A Scheme B, the whole process is complex and cumbersome. In particular Plan B, if not the set of server deployment, it is no good direct.

At this point, ngrok can come in handy, just need to open a command input, you can let your friends thousands of miles away test, the whole operation takes less than 5 seconds.

[Scene 2]

We sometimes butt when various authorization, such as micro-channel authorization, there will be a micro letter filed with the domain https call back if you have yet to apply for these things, or still pending (domain name registration often takes two weeks or so), so now you can only wait, so that the code can not write or test.

At this point, ngrok you can also show their talents, you can in the process, with ngrok to your domain, configure micro letter to the callback address, so as not to affect the normal development of.

Download ngrok, and then double-click.

https://pan.baidu.com/s/1vtBLsdrrW3T5DwhUzpnrSA

Then enter the command: ngrok http 8080 (8080 for your program Access Port)
last figure is the URL that you want to share with someone else's Web site
Here Insert Picture DescriptionHere Insert Picture Description

Published 45 original articles · won praise 7 · views 917

Guess you like

Origin blog.csdn.net/qq_42222342/article/details/103866384