Linux find external ip from command line

 

Recently when I am trying to get external IP of our network got following command, it may be useful for others so thought to share it.

$ curl http://ipecho.net/plain

Output:

It will display external IP address on your terminal or konsole.

-Sany

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s