Get your public IP via shell

To get your public IP you can use websites like www.whatismypublicip.com/ or just google for it (http://lmgtfy.com/?q=public+ip)

Get your public IP via shell
Get your public IP via shell

But you can also get your public IP via the following Linux shell  command (the smart way :-D):

This gives you an output like that:

Or for IP address only output:

Example output:

To install get you have to run:

Under CentOs you can call:

 

One thought on “Get your public IP via shell

Leave a Reply

Your e-mail address will not be published. Required fields are marked *

 

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