Wednesday, July 6, 2011

How to see your public IP address from command line

Searching around I found few ways to do that while using Linux console. Upon entering the script , the prompt will return the public IP address

~$ wget -qO- && echo

~$ wget -q -O -;echo

~$ wget -q -O -|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

1 comment:

holy joly said...

Nice information. I had checked my External ip address using this site