Add IP info lookup for Admins

IP locations don’t change that frequently, and even less frequently at the country level, so looking up the current geolocation details is probably going to be OK.

To get this up and running quickly you could use the http://ipinfo.io API, which gives you a bunch of different details:

$ curl ipinfo.io/67.188.232.130
{
  "ip": "67.188.232.130",
  "hostname": "c-67-188-232-130.hsd1.ca.comcast.net",
  "city": "Mountain View",
  "region": "California",
  "country": "US",
  "loc": "37.4192,-122.0574",
  "org": "AS7922 Comcast Cable Communications, Inc.",
  "postal": "94043"
}
5 Likes