Show HN: Justyourip.com
justyourip.com
justyourip.com
location /whatsmyip {
default_type text/plain;
return 200 $remote_addr\n;
}No ads, no affiliation with anybody but the guy who made it, just a place to get Just Your IP.
curl -s cloudflare.com/cdn-cgi/trace | grep ip | cut -d "=" -f 2 -- curl -s cloudflare.com/cdn-cgi/trace | awk '{FS="="} /ip/ {print $2}' curl -s cloudflare.com/cdn-cgi/trace | sed -nr "s/^ip\=(.+)$/\1/p"I just do this, myself:
IP=`curl -s checkip.amazonaws.com`
* http://ip1.dynupdate.no-ip.com/
or, the classic "let TTL do the work": ping -i 2 example.org (assuming you're one hop from your egress)
Same results in Safari. Oddly enough, works as expected in Firefox.
Edit: Are you using 1.1.1.1 by chance? If so turn it off.
That being said, I find it useful to see the location I'm connecting from (mostly to make sure that my VPN works).
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 always shows just your IP address)
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.
or
dig @ns1.google.com o-o.myaddr.l.google.com TXT +short | tr -d \"
or
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.
Couple alternatives:
* Search Google or DDG for “my ip”.
dig +short myip.opendns.com @resolver1.opendns.comI use:
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
which I've aliased to ipe