What is Ngrok

The official explanation is to be able to make your local web page quickly through the agent is a very convenient tool to access the outside world, do not have to build a server and so on the troublesome process, suitable for the early development process, rapid assessment of detection projects.

While I used to visit Jenkins quickly at home, steal a lazy 🤪

Building methods

It took a long time to find a way to use Ngrok to complete a web page optimization task, but it was not easy enough and finally found a good way.

1. Download ngrok for MAC at ngrok.com/download

2. Unzip to a specific directory: Safari usually unzip the Mac OS X environment (which I did automatically anyway) and put ngrok in the project directory.

3. Enter the path where ngrok is located:

cd /tmp
Copy the code

4. Enable the service

./ngrok http localhost:8080
Copy the code

The following Ngrok console appears

After the Session Status changes to Online, the extranet can be connected using the Forwarding address.

The Forwarding address c33faf1b is not fixed. It changes every time ngrok service is started. Ngrok: 😛 for money.

Test the

Such as:

Ngrok access address on LAN before penetration: http://localhost:8080

After nGROk penetration, LAN + public network access address: c33faf1b.ngrok.io