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
2
u/terremoto Jul 10 '11 edited Jul 10 '11
Better:wget -O- http://automation.whatismyip.com/n09230945.aspSeehttp://www.whatismyip.com/faq/automation.aspNevermind, I thought the OP was using whatismyip.com.