48 points · by namidark · 13y ago · 36 comments
$ curl ipinfo.io
{
"ip": "67.188.232.131",
"hostname": "c-67-188-232-131.hsd1.ca.comcast.net",
"city": "Mountain View",
"region": "California",
"country": "US",
"loc": "37.385999999999996,-122.0838",
"org": "AS7922 Comcast Cable Communications, Inc.",
"phone": 650
}
$ curl ipinfo.io/geo
{
"ip": "67.188.232.131",
"city": "Mountain View",
"region": "California",
"country": "US",
"loc": "37.385999999999996,-122.0838",
"phone": 650
}
$ curl ipinfo.io/org
AS7922 Comcast Cable Communications, Inc.
$ curl ipinfo.io/8.8.8.8/org
AS15169 Google Inc.
More details available at http://ipinfo.io/developersMight not want to display people's data like that.
The only way I find that remotely possibly of any interest is perhaps maybe some of those IPs are slightly more prone to having some sort of public unsecured service. (And uses this API/site to find the public IP.)
Is there an actual legitimate complaint or worry here?
It just looks like search engine spam really - those sort of ones that appear when you search for an IP address in Google
"loc": "37.385999999999996,-122.0838",
Did a float creep into the storage system at some point?There is a reason all the popular sites are "slow to respond" or make you jump through CAPTCHA or rate-limit hoops.
If you have play 2.2.1 in your path its as simple as running `play dist` and moving the zip over to your server, and running the shell script play creates :)
http://serverfault.com/questions/89114/finding-the-public-ip...
$ time curl ifconfig.me
88.177.189.XX
curl ifconfig.me 0,01s user 0,01s system 0% cpu 2,517 total
$
How is this for "cluttered with ads, taking too many seconds to respond"? $ time curl ip.appspot.com
76.11.33.XXX
real 0m0.184s
user 0m0.007s
sys 0m0.006s'/as' and '/rbl' are quite useful.
thanks for sharing this and the source code as well.
Did I mention http://ifconfig.me/ ?