Live data from Hacker News

Show HN: Justyourip.com

justyourip.com

11–20 of 47 posts

Re: Show HN: Justyourip.com

#13
post #9

I got tired of sending people to ad laden websites, some of them quite obnoxious, just for an IP. So I made this. No ads, no affiliation with anybody but the guy who made it, just a place to get Just Your IP.

There's also icanhazip.com and /cdn-cgi/trace on any Cloudflare-proxied site.

I didn't know about the /cdn-cgi/trace Cloudflare trick. Here's a one-liner to print just the ip via curl:

  curl -s cloudflare.com/cdn-cgi/trace | grep ip | cut -d "=" -f 2 --

Re: Show HN: Justyourip.com

#14
Just a heads up that it's not working as expected in Chrome. I loaded the page and got an IP that wasn't mine, then refreshed the page and got a different IP that still wasn't mine. Upon further investigation, both incorrect IPs appear to be owned by CloudFlare.

Same results in Safari. Oddly enough, works as expected in Firefox.

Re: Show HN: Justyourip.com

#15
post #14

Just a heads up that it's not working as expected in Chrome. I loaded the page and got an IP that wasn't mine, then refreshed the page and got a different IP that still wasn't mine. Upon further investigation, both incorrect IPs appear to be owned by CloudFlare. Same results in Safari. Oddly enough, works as expected in Firefox.

Yeah I was initially testing it on Cloudflare but took it off because I didn't want to fiddle with the server. DNS might be cached for some reason. I switched over to my private nameservers for the time being.

Edit: Are you using 1.1.1.1 by chance? If so turn it off.

Re: Show HN: Justyourip.com

#16

I'm a big fan of https://httpbin.org/ip or dig @ns1.google.com o-o.myaddr.l.google.com TXT +short | tr -d \" or https://github.com/Snawoot/myip

Also http://v4.ident.me and http://v6.ident.me if you want to check a specific IP version. Unfortunately, leaving off the version prefix (/subdomain) doesn't work.
Post reply on HN