6 ms·
Show HN: Justyourip.com
- geocrasher 5y agoI 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.
- rdubs333 5y agoOne does not simply upvote to the top alone! Thank you, bookmarked!
- geocrasher 5y agoThanks!
- easrng 5y agoThere's also icanhazip.com and /cdn-cgi/trace on any Cloudflare-proxied site.
- ksbrooksjr 5y agoI 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 --
- stevekemp 5y agoYou could use awk instead of grep & cut: curl -s cloudflare.com/cdn-cgi/trace | awk '{FS="="} /ip/ {print $2}'
- luismedel 5y agoAnd sed: curl -s cloudflare.com/cdn-cgi/trace | sed -nr "s/^ip\=(.+)$/\1/p"
- btgeekboy 5y agoThat may return IPv6 if you have IPv6 connectivity, which might not be what you're looking for. I just do this, myself: IP=`curl -s checkip.amazonaws.com`
- I_complete_me 5y agoWhat do those -- at the end do? I get my IP without them.
- indrora 5y agoGosh, and here I feel like an Old for remembering the big list: * http://checkip.dyndns.com/ http://checkip.dyndns.com/ * http://ip1.dynupdate.no-ip.com/ http://ip1.dynupdate.no-ip.com/ * https://ipchicken.com/ https://ipchicken.com/ * https://ifconfig.me https://ifconfig.me or, the classic "let TTL do the work": ping -i 2 example.org (assuming you're one hop from your egress)
- dave_sid 5y agoHow about a sister site called notyourip.com that shows someone else’s IP address?
- leifg 5y agoThat is already 100 times better than existing solutions. That being said, I find it useful to see the location I'm connecting from (mostly to make sure that my VPN works).
- geocrasher 5y agoDo you mean rdns for your hostname, or geolocation? Or both?
- leifg 5y agoNot sure what the difference is but either probably works for my use case.
- kadoban 5y agoJustYouRip.com
- geocrasher 5y ago:D yup that's one interpretation lol
- zauguin 5y agoPersonally I prefer ifconfig.me which takes this idea one step further. Especially: Querying it with curl (or another system requesting plain text) really only returns the IP, not some HTML page. (Opening it in the browser also shows some useful information about the request, but http://ifconfig.me/ip http://ifconfig.me/ip always shows just your IP address)
- geocrasher 5y agoI can make a curl version of it at some point. For now, though, the point is that its JUST your IP. Nothing else. It's made for sending grandma's to. EDIT: Now, best of both worlds. Reload the page and either highlight the page text or look in the source code for how to use it with curl and bash. I'm sure you can figure out your favorite parser for csv.
- bertrandom 5y agoI'm a big fan of https://httpbin.org/ip 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 https://github.com/Snawoot/myip
- gdavisson 5y agoAlso http://v4.ident.me http://v4.ident.me and http://v6.ident.me http://v6.ident.me if you want to check a specific IP version. Unfortunately, leaving off the version prefix (/subdomain) doesn't work.
- mfonda 5y agoJust 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.
- geocrasher 5y agoYeah 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.
- btgeekboy 5y agoDoesn’t seem to work for me on Safari/iOS. Couple alternatives: * Search Google or DDG for “my ip”. * http://checkip.amazonaws.com/ http://checkip.amazonaws.com/
- treesknees 5y agoI like Amazon's page because it doesn't return any HTML, just a simple plaintext response which makes it simple to integrate into a script or bash one-liner. Also, Amazon is large enough that I'm confident they're not going to put in a captcha or rate limit.
- redmattred 5y agoWhere do I submit feature requests?
- geocrasher 5y agoYou can comment here for now.
- redmattred 5y agoWas joking :) It does everything it says it will
- geocrasher 5y agoWell in that case you can submit a pull request on my github repo. :D
- lobsterboix 5y agoI love it, one thing it does, and that's it, 2 lines of text and the information i want. thank you for this tool.
- voussoir 5y agoAnyone who runs a website with nginx might find this directive helpful: location /whatsmyip { default_type text/plain; return 200 $remote_addr\n; }
- andrewmcwatters 5y agohttp://checkip.amazonaws.com/ http://checkip.amazonaws.com/
- barbazoo 5y agoI recommend https://ifconfig.me https://ifconfig.me which has ways to actually just return the IP address unlike this website e.g via curl
- tsujp 5y agohttps://icanhazip.com https://icanhazip.com
- luckman212 5y agoMy favorite (very fast & lightweight) dig +short myip.opendns.com @resolver1.opendns.com
- I_complete_me 5y agoThis doesn't work for me for some reason. I use: dig TXT +short o-o.myaddr.l.google.com @ns1.google.com which I've aliased to ipe
- luckman212 5y agoThat's neat, but you have to get rid of the quotes somehow.
- ruffrey 5y agoJust You Rip
- nicbou 5y agoI use those that have IP geolocation or ISP info to confirm that my VPN or proxy works. Otherwise I'm happy that you've made this. The world has fewer and fewer tools that do one thing well without asking anything of you.
- geocrasher 5y agoIt is the Unix way :-)
- Rastonbury 5y agoThis doesn't work for me, I had a VPN and resreshed on and off and it doesn't change
- ale42 5y agoDoesn't work with IPv6...
- spartas 5y agohttps://api.ipify.org/?format=json https://api.ipify.org/?format=json and https://ipdata.co https://ipdata.co
- known 5y ago
- alam2000 5y ago