How to Check IP Address in Termux?

You can check your public IP address in Termux using simple command-line tools. These commands connect to online services and instantly display your IP, making it useful for network information and basic troubleshooting.

Commands

Install wget and curl package:

pkg install wget curl -y

Get IP using curl:

curl ifconfig.me

Get IP using wget:

wget -qO- ipinfo.io/ip

Another method using curl:

curl icanhazip.com

Output: These commands will return your public IP address, which is used by your internet connection to communicate with websites and online services.

SHARE THIS POST: