As a termux user we are required to know the tutorial on using ngrok, both how to install ngrok on termux and how to run it.
I’ve looked in several sources, it turns out that there are 4 steps to install ngrok on termux.
But first, let’s first know what ngrok is and what benefits we can get if we have installed it.
What is snoring?
Ngrok is a program that we can use to create a local network so that it can be accessed by the public internet network.
The example is exactly the same as serveo.net which is often used in camera hack tutorials and track location.
In the world of programming, ngrok is very useful for doing many things, for example, such as doing web testing, creating private networks, sharing files and others.
So basically ngrok must be installed on termux if you want to do server-related activities.
Here are the uses of ngrok
- Create a private network
- Various files
- Doing web testing
- Creating remote desktop
- Showing an example of a website that was created
Well, the use of number 5 is what we often use in activities using termux.
Okay, now we learn how to install ngrok.
How to install ngrok on termux full tutorial
I remind you to learn how to use termux first so you don’t forget to enter commands and other things.
Also prepare internet quota, because it will be used to download ngrok files.
Then follow the steps below.
1. Download the ngrok file and move it to HOME termux
Just open the termux application and enter the following command.
$ pkg update && pkg upgrade $ pkg install curl $ pkg install Zip $ pkg install unzip $ wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip $ unzip ngrok-stable-linux-arm.zip
After entering the ngrok unzip command, ngrok will automatically be installed on the HOME termux. press ls to display the file.
Notes:
Usually an error occurs when ngrok is downloaded directly from termux. The solution, you can download the file directly on this page.
Next, open the termux application and move the downloaded file to the termux HOME.
Caranya ketik $ cd /sdcard $ cd Download $ cp -f ngrok-stable-linux-arm.zip $HOME $ unzip ngrok-stable-linux-arm.zip
2. Register a ngrok account from the browser
This ngrok account will later be used to connect ngrok on termux with the ngrok server.
Just prepare an email for its registration.
1. Visit the ngrok website from a browser at https://dashboard.ngrok.com/signup
2. Enter the requested data into the prepared column
3. After success, you will be directed to the ngrok dashboard
4. Next is to look for the token code in the connect your account menu.
Copy the code, because it will be included in termux later.
3. Connect termux with ngrok server
Go back to the termux application and enter the following command.
./ngrok authtoken kodeTokenKalian contoh: ./ngrok authtoken 1XWZYvyVGy1gPku61WzESlTgDdh_3vBTBpCJJXSmH5u4AMR22
Well, you just have to wait for it to connect or be connected. The sign is like the image below.
4. Run ngrok as needed
To run ngrok there are 4 commands that can be used. Each command has a different function.
./ngrok http 80
The above command will run ngrok in temux. We can set the port according to our wishes. Then to display help or a list of ngrok commands, type the following
./ngrok -h
If we want to use TCP, type the following command
./ngrok tcp 8080
If we want to check whether ngrok is actually running (online) then we can open the browser and enter the url address
localhost:4040
In the url above will display web ngrok which means online status or successfully executed.
So until here we have learned how to install ngrok on termux, then you just have to develop it yourself what it will be used for.
If an error occurs when installing ngrok on termux, you can try activating a VPN or changing the current network.
And if there are other problems, please ask in the comments column. Thanks for reading.