Join WhatsApp

Join Now

Join Telegram

Join Now

How To Install Ngrok In Termux | Latest 2024

By Saboor Shawkat

Updated on:

ngrok in termux
5/5 - (1 vote)

In This Post I Am Going To Show You How You Can Install NGROK In Termux Using Basic Commands In Termux. We Will Install NGROK So That We Can Create A Network Tunnel Or We Can List Our Local Host Address To The Public. NGROK Is Used In Much Of The Tools Like Metasploit And Others To Make You Local Host Accessible By Public. We Will Go Through The Basic Definition Of The NGROK And Then We Will Install NGROK In Termux After That We Will See Its Uses. So Let’s Start,

What Is NGROK?

NGROK Is A Global Network Of Servers That Helps The Users And Developers To Expose Their Local Host To The Public So That A Person Can Connect To The Internet In A Two Way Mode. It Can Be Also Used To Secure The Network Using Proxy, Firewall And API Gateway. This Tool Can Be Used With Many Hacking Tools As It Is Much Easy To Use And Is Free Almost. This Is The Best Networking Tool As Far As I Know.

How To Install NGROK In Termux?

Installing NGROK In Termux Will Require Some Dependencies, We Can Install The Depenedencies First Followed By The Installation Of The NGROK In Termux. We Will Require A Strong Internet Connection And An Android Device With Version Above 6. Follow The Below Steps One By One To Install NGROK In Termux:

Step 1: First Of All Open The Termux App And Check If You Are Connected To The Internet.

Step 2: Now Update And Upgrade All The Termux Pacakges Using pkg update && pkg upgrade -y Command.

ShellScript
 pkg update && pkg upgrade -y

Step 3: Now Install Wget In Termux To Download The Files From Web. Install It By Using pkg install wget -y Command.

ShellScript
pkg install wget -y

Step 4: Now Let’s Download The NGROK Zip File From The Internet Using wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm64.tgz Command.

ShellScript
wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm64.tgz

Step 5: Unzip The NGROK File Using tar -xzvf ngrok-v3-stable-linux-arm64.tgz Command.

ShellScript
tar -xzvf ngrok-v3-stable-linux-arm64.tgz
Unzipping NGROK In Termux

Step 6: Now We Need To Get The NGROK Authentication Token From The Official Website Of NGROK (https://ngrok.com).

Step 7: Go To The Official Website Of NGROK, Create An Account There And Copy The Authentication Token From There.

Step 8: Now Type ./ngrok authtoken {paste your token here} In The Termux To Authenticate The NGROK In Termux.

ShellScript
./ngrok authtoken {paste your token here}

Step 9: We Have Completely Installed And Authenticated The NGROK In Termux. We Can Use Now It To Create A Different Type Of Tunnels. To Create A Tunnel At Port 80 We Can Type ./ngrok http 80 Command

ShellScript
./ngrok http 80

After Installing NGROK In Termux You Can Move To The Usage Of NGROK In Termux, We Can Simply Use It For TCP Connections And Also To Protect The Connection. Make Sure To Turn On The Mobile Hotspot To Ensure The Proper Working Of The NGROK In Termux.

Also Read: How To Install PhoneInfoga In Termux | Latest 2024

How To Use NGROK In Termux ?

You Can Use NGROK For Different Purposes, In This Post We Will Start A HTTP Tunnel And Create A TCP Connection In Termux Using NGROK.

Use 1: To Create A HTTP Tunnel In Termux You Need To Start The NGROK Uing ./ngrok http 80 Command And Turn On Your Mobile Hotspot.

ShellScript
./ngrok http 80

Use 2: To Create A TCP Tunnel At Port 1275 You Need To Type ./ngrok tcp 1275 In Termux And Also Turn On The Mobile Hotspot.

ShellScript
./ngrok tcp 1275

This Command Will Make You Local Host Public And Mask It With tcp://0.tcp.ngrok.io Like Website.

How To Install NGROK In Termux Using A Single Command?

You Just Need To Sum Up All The Commands Of The Installation Of The NGROK In Termux, We Will Add Up These Commands Using “&&” Symbol. Make Sure We Will Go Upto The Downloading And Installing Of NGROK In A Single Command. We Will Not Authenticate It With The Single Command. After This Command You Need To Authenticate The NGROK And Make Sure It Is Working. Type pkg update && pkg upgrade -y && pkg install wget -y && wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm64.tgz && tar -xzvf ngrok-v3-stable-linux-arm64.tgz To Install NGROK In A Single Command.

ShellScript
pkg update && pkg upgrade -y && pkg install wget -y && wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm64.tgz && tar -xzvf ngrok-v3-stable-linux-arm64.tgz

If The Installation Was Unable To Complete You Must Go With The Step By Step Process Of Installation Of The NGROK. Make Sure To The Check The Artitechture Of Your Device.

How To Remove NGROK From Termux?

We Can Also Go With The Uninstallation Of The NGROK In Termux. Due To Some Issues When We Need To Uninstall NGROK From Termux We Can Go With This Tutorial. Follow The Below Steps To Remove NGROK From Termux:

Step 1: First Of All Go To The Directory Where You Have Install NGROK In Termux. Mostly We Use Home Directory To Install NGROK In Termux. Type cd To Navigate To The Home Directory.

ShellScript
cd

Step 2: Type rm -rf ngrok To Remove NGROK From Termux.

ShellScript
rm -rf ngrok

Step 3: If You Want To Remove The Zip File Also You Can Type rm -rf ngrok-v3-stable-linux-arm64.tgz To Remove The Zip File Also.

ShellScript
rm -rf ngrok-v3-stable-linux-arm64.tgz

These Steps Will Permananetly Remove NGROK From Termux. After These Steps You Have To Install NGROK From The Basics If Needed. No Backup Is Taken In This Process.

Conclusion:

NGROK Is One Of The Awesome And Important Tool That A Developer Or A Hacker Can We. We Have Discussed Almost All About The NGROK In Termux. The NGROK Is Free Platform But You May Need To Buy A Subscription For All The Features Of The NGROK Tool. This Tutorial Is One Of The Most Important Tutorial In Termux Because I Will Use This Tool In Most Of The Tool Of The Termux To Create A TCP Tunnel Or To Expose The Local Host To The Public.

I Hope You Have Understood The Post Well. If You Got Any Quries About This Post You Can Tell Me In The Comments Section. Thanks For Reading, Stay Ethical.

Frequently Asked Questions:

What Is NGROK Used For?

NGROK Is Used To Secure Networks, Create Different Network Tunnels And Also To Expose The Local Host To The Public.

Can We Use NGROK In Linux?

Yes, NGROK Is Build For Linux And Can Be Used Almost All Of The Linux Distributions Including Termux.

Is NGROK Free To Use?

Yes, Most Of The Features Of NGROK Does Not Require Any Subscription, But You May Have To But The Subscription For All The Features Of The NGROK.

1 thought on “How To Install Ngrok In Termux | Latest 2024”

Leave a Comment