Thursday, 10 July 2014

Finding external IP using the command line

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

Possibly Related Posts

1 comment:

  1. Hi there,
    Can I make a suggestion?

    "curl ifconfig.me"

    Nice blog, ;)

    ReplyDelete