Get your outgoing IP address via SSH

Method 1 :

wget http://icanhazip.com -qO-
wget http://icanhazip.com -qO-

Alternate methods :

curl icanhazip.com
curl icanhazip.com

or

curl ifconfig.me
curl ifconfig.me

or

dig +short myip.opendns.com @resolver1.opendns.com
dig +short myip.opendns.com @resolver1.opendns.com

If you can do better, please submit your command here.

Be first to comment