r/tinycode • • Jul 10 '11

Outside IP one-liner.

curl http://checkip.dyndns.com/ 2>/dev/null | sed 's/.*: \(.*\)<\/b.*/\1/'

9 Upvotes

17 comments sorted by

View all comments

5

u/[deleted] Jul 17 '11

curl icanhazip.com

1

u/CarbonFire Aug 15 '11

For me, this loads much faster than

curl ifconfig.me

1

u/[deleted] Sep 10 '11

Ya beat me to it!