What is my public IP – linux from CLI

As seen on garron.me

wget -> wget -q -O – checkip.dyndns.org|sed -e ‘s/.*Current IP Address: //’ -e ‘s/<.*$//’

curl -> curl -s checkip.dyndns.org|sed -e ‘s/.*Current IP Address: //’ -e ‘s/<.*$//’

curl -> curl ifconfig.me

lynx -> lynx -dump ifconfig.me | grep ‘IP Address’

Leave Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.