The easiest way is to use an external service via a commandline browser or download tool. Since wget is available by default in Ubuntu, we can use that.
To find your ip, use:
wget -qO- http://ipecho.net/plain ;
You can do the same using curl:
curl ipecho.net/plain ; echo
Hi there,
ReplyDeleteCan I make a suggestion?
"curl ifconfig.me"
Nice blog, ;)