# curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
or shorter
# wget http://ipinfo.io/ip -qO
Reference:
http://askubuntu.com/questions/95910/command-for-determining-my-public-ip
Monday, June 13, 2016
Subscribe to:
Post Comments (Atom)
1 comment:
even simpler,
# curl ifconfig.co
Post a Comment