View Single Post
Posts: 20 | Thanked: 7 times | Joined on Jan 2010 @ Romania
#79
Code:
wget -q -O - api.myiptest.com | awk -F"\"" '{ print "ext	" $4 " (" toupper($28) ")" }'
Getting external IP address and country code.

Code:
wget -q -O - api.myiptest.com | awk -F"\"" '{ print "ext	" $4 " (" $12 " " toupper($28) ")" }'
Getting external IP address, ISP name and country code.

Last edited by vldcnst; 2010-01-27 at 12:14.
 

The Following 3 Users Say Thank You to vldcnst For This Useful Post: