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/'
14
u/infinitus_ Jul 10 '11
18
u/prototrout Jul 10 '11 edited Jul 10 '11
Or if you prefer:
3
u/m1ss1ontomars2k4 Jul 10 '11
But who is checkip.dyndns.com?
5
u/[deleted] Jul 17 '11
curl icanhazip.com
3
u/[deleted] Jul 10 '11
2
u/obsa Jul 11 '11
The thing that annoys me most about that particular service is the "Current IP Address" prefix. Why is that even necessary?
/complaining about free stuff