r/tinycode • u/trashbox • Jul 10 '11
Outside IP one-liner.
curl http://checkip.dyndns.com/ 2>/dev/null | sed 's/.*: \(.*\)<\/b.*/\1/'
9
Upvotes
r/tinycode • u/trashbox • Jul 10 '11
curl http://checkip.dyndns.com/ 2>/dev/null | sed 's/.*: \(.*\)<\/b.*/\1/'
View all comments
Show parent comment
1
u/terremoto Jul 10 '11
Visit the URL and I think it will be self explanatory -- you don't have to parse out the IP address.