Live data from Hacker News

Icanhazip: A simple IP address tool survived a deluge of users (2021)

blog.apnic.net

111–120 of 146 posts

Re: Icanhazip: A simple IP address tool survived a deluge of users (2021)

#111

Not related to the story of scaling the tech but rather to the IP business in 2023: I’m not affiliated with any of these services, but my goto has been ip4.me, ip6.me, and ip6only.me because they’re short and memorable and because they acknowledge the IPv4/IPv6 split. The first two domains give you your v4 and v6 IP respectively and the latter only resolves over IPv6 (useful to ensure your IPv6 is off when using a VP…

And if you attach /ip you get only the IP address (as /api also includes the URL of the documentation).

Re: Icanhazip: A simple IP address tool survived a deluge of users (2021)

#112

Not related to the story of scaling the tech but rather to the IP business in 2023: I’m not affiliated with any of these services, but my goto has been ip4.me, ip6.me, and ip6only.me because they’re short and memorable and because they acknowledge the IPv4/IPv6 split. The first two domains give you your v4 and v6 IP respectively and the latter only resolves over IPv6 (useful to ensure your IPv6 is off when using a VP…

When helping someone over the phone, I get them to go to http://ipchicken.com Very easy URL to relay, "do you see the chicken? let me know what the blue numbers are below it" - and most people seem to get a kick out of it!

Gives a CloudFlare 520 error for me...

Re: Icanhazip: A simple IP address tool survived a deluge of users (2021)

#113
post #30

For ridiculously easy things like this, I think it's smarter for you to just host it yourself. This way you are not forcing other people to carry your burden. nginx config example: location /ip { add_header Content-Type "application/json"; return 200 '{"host":"$server_name","ip":"$remote_addr","port":"$remote_port","server_ip":"$server_addr","server_port":"$server_port "}\n'; } Which will return something like this i…

This will return the wrong results when used behind a load balancer

Not if you use the PROXY protocol

Re: Icanhazip: A simple IP address tool survived a deluge of users (2021)

#114
post #100

Earlier quoted context omitted.

When helping someone over the phone, I get them to go to http://ipchicken.com Very easy URL to relay, "do you see the chicken? let me know what the blue numbers are below it" - and most people seem to get a kick out of it!

A long time ago I spent a bit too long debugging something to later find out the "source port" that displays isn't right! It's still not right! I obviously fixed this by making my own site ( https://ip.wtf ).

Great service! Very informative. If you could also implement ip.wtf/ip or some such, it might decrease your bandwidth..!

Re: Icanhazip: A simple IP address tool survived a deluge of users (2021)

#115

Not related to the story of scaling the tech but rather to the IP business in 2023: I’m not affiliated with any of these services, but my goto has been ip4.me, ip6.me, and ip6only.me because they’re short and memorable and because they acknowledge the IPv4/IPv6 split. The first two domains give you your v4 and v6 IP respectively and the latter only resolves over IPv6 (useful to ensure your IPv6 is off when using a VP…

https://www.ipify.org/ is my go to, mostly because it has a really simple JSON version. Funny how many ways there are to do this simple thing.

https://api.ipify.org/ works to just get text IP.

Re: Icanhazip: A simple IP address tool survived a deluge of users (2021)

#117
Im so glad the late 00s era of cringy "lolcat english" is over. Perhaps the modern equivalent of excessively pretentious sounding crypto bro naming schemes is worse in some ways, but at least I dont have to pause to explain the name when I say it out aloud to someone.

Re: Icanhazip: A simple IP address tool survived a deluge of users (2021)

#118
post #67

Earlier quoted context omitted.

so 3, 2 less memorable sites, ok got it

I’d say that is up you. I can never remember what tld those other sites used. I’ve been using icanhazip since many years. I seem to remember it fine.

Replace the double nn in your post by nh and it will work better ;-)

Re: Icanhazip: A simple IP address tool survived a deluge of users (2021)

#119

Not related to the story of scaling the tech but rather to the IP business in 2023: I’m not affiliated with any of these services, but my goto has been ip4.me, ip6.me, and ip6only.me because they’re short and memorable and because they acknowledge the IPv4/IPv6 split. The first two domains give you your v4 and v6 IP respectively and the latter only resolves over IPv6 (useful to ensure your IPv6 is off when using a VP…

the issue is that these return a bunch of html so using them from the command line is not ideal. I made wgetip.com back in 2008 to solve this. icanhaz must've been pretty suboptimal back then to have issues with traffic. wgetip still gets about 3M requests per hour. All from a single $5 droplet.

Best thing to try first is to append /ip I've found.

For wgetip.com that is not needed of course. But I haven't found a way to get the IPv4 address there...

Re: Icanhazip: A simple IP address tool survived a deluge of users (2021)

#120
post #15

Earlier quoted context omitted.

the issue is that these return a bunch of html so using them from the command line is not ideal. I made wgetip.com back in 2008 to solve this. icanhaz must've been pretty suboptimal back then to have issues with traffic. wgetip still gets about 3M requests per hour. All from a single $5 droplet.

ip4.me and ip6.me have /api endpoint for programmatic access

There, /ip is better.
Post reply on HN