←back to thread

980 points nkcmr | 2 comments | | HN request time: 0.405s | source
Show context
eruci ◴[] No.27416210[source]
I used it for a while, then after a couple of failures decided to whip up my own at https://geocode.xyz/myip

Took me 5 minutes of work and exactly one line of code.

replies(1): >>27416227 #
1. andrewstuart2 ◴[] No.27416227[source]
There's a lot more helpful info you can return, too. Try https://ifconfig.me. Works great in bash scripts too, as it only returns the IP when called with a curl user agent.
replies(1): >>27416260 #
2. eruci ◴[] No.27416260[source]
This is cool!