Wednesday, July 6, 2011

CmdLine ----- Check Public IP address

[1] http://www.simplehelp.net/2009/04/07/how-to-find-your-public-ip-address-with-the-linux-command-line/

[root@GsnCommsModule /]# wget -q -O - http://checkip.dyndns.org
...Current IP Check Current IP Address: 1.152.83.93...

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

No comments: