Hacker News new | ask | show | jobs
by pepa65 1059 days ago
Great service! Very informative. If you could also implement ip.wtf/ip or some such, it might decrease your bandwidth..!
1 comments

Thanks!

No need for a /ip, just doing:

$ curl ip.wtf

... will do the right thing, or if your user-agent isn't curl send a header of "Accept: text/plain" and you'll get the plain text version (see https://ip.wtf/about for more).

And no need for an IPv4 or IPv6 mode url/param since curl -4 or curl -6 will do the trick!