The First method is the most simplest one to me:
Go to Google and Type "IP" in the search bar. Your IP address will show up in few mili seconds.
The Second method are pretty easy as well:
Go to Whatismyip and you can see your IP address directly from the web page.
Now, which one do you prefer? Leave your comments. :)
Written by Eddy@CR
Or you can do this via the command line of course:
ReplyDeletelynx -dump 'http://checkip.dyndns.com/' | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'
or substitute lynx with curl.
Once again thanks for the info. The guide I provide was dedicated to the users who has graphical interface.
DeleteThe command you gave was working fine on my centos machine, for both curl and lynx. To get lynx working, simply yum install lynx will do.
By the way, I have try some googling, and actually found some shorter commands and other iplookup provider.
1. curl icanhazip.com
it will directly show your external ip.
Lynx can do the same thing too.
2. curl whatismyip.org; echo
Have a nice day!
Eddy