Skip to content

whatismyip

Various ways to print your WAN IP -Address:

curl

curl -s https://w.nr1.nu/i 
curl -s https://w.nr1.nu/i/
curl -s http://wtfismyip.com/text
curl -s https://ifconfig.co
curl -s checkip.dyndns.org|grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'

wget

wget -qO - https://w.nr1.nu/i/
wget -O - -q icanhazip.com
wget -qO- ifconfig.me/ip
wget http://icanhazip.com -qO-

Last update: June 30, 2022
Created: June 18, 2022