Thread
:
Ip retreval?(sp)
View Single Post
Matan
2009-04-09 , 19:41
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#
6
I guess the easiest way is to parse some page like
http://whatsmyip.net/
:
wget -O - -o /dev/null
http://whatsmyip.net
| grep empty_area | cut -d'>' -f 2 | cut -d'<' -f 1
works, but those sites tend to change their format frequently, so this will stop working some time in the future.
Quote & Reply
|
Matan
View Public Profile
Send a private message to Matan
Find all posts by Matan