# Add IP info lookup for Admins

**URL:** <https://meta.discourse.org/t/add-ip-info-lookup-for-admins/15626>\
**Category:** Feature\
**Tags:** rfc, spec\
**Created:** [2014年五月14日 07:13 UTC](https://meta.discourse.org/t/add-ip-info-lookup-for-admins/15626 "2014-05-14T07:13:11Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![lightyear](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@lightyear](https://meta.discourse.org/u/lightyear)\
**Post date:** [2014年六月23日 08:55 UTC](https://meta.discourse.org/t/add-ip-info-lookup-for-admins/15626/21 "2014-06-23T08:55:41Z")

</div>

> [@codinghorror](#):
>
> @lightyear I noticed this does not work at all for IPV6, e.g. this:

Yeah, it looks like [ipinfo.io](http://ipinfo.io) doesn’t support ipv6-Addresses at all [2001:4860:4860::8888 | Mountain View, AS15169, VPN Not Detected | IPinfo](http://ipinfo.io/2001:4860:4860::8888) gives me `Please provide a valid IP address`.

@coderholic, any idea of any provider that does?

---

<div class="post-metadata">

**Author:** ![coderholic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/coderholic/32/108825_2.png) [@coderholic](https://meta.discourse.org/u/coderholic)\
**Post date:** [2014年六月28日 03:12 UTC](https://meta.discourse.org/t/add-ip-info-lookup-for-admins/15626/22 "2014-06-28T03:12:24Z")

</div>

I’ve just added IPv6 support [http://ipinfo.io](http://ipinfo.io), so hopefully this should now _just work_. Here’s what’s coming back for the example IP you posted:

```
$ curl http://ipinfo.io/2001:4860:4860::8888
{
  "ip": "2001:4860:4860::8888",
  "hostname": "No Hostname",
  "city": null,
  "region": null,
  "country": "US",
  "loc": "38.0000,-97.0000",
  "org": "AS15169 Google Inc."
}

```

One thing I should probably draw your attention to is the fact that the free [ipinfo.io](http://ipinfo.io) plan is limited to 1,000 lookups per day, and beyond that it’ll return a 429 error. If you’re expecting to do more than 1,000 IP lookups a day then get in touch via [Talk With Sales - Custom Pricing Solutions | IPinfo.io](http://ipinfo.io/contact) and I’m sure we can work something out.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2014年六月28日 03:17 UTC](https://meta.discourse.org/t/add-ip-info-lookup-for-admins/15626/23 "2014-06-28T03:17:36Z")

</div>

Awesome! As this is an admin-only on demand, manual click action I highly doubt any Discourse install would come anywhere remotely close to 1k lookups per day.

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2014年七月7日 20:20 UTC](https://meta.discourse.org/t/add-ip-info-lookup-for-admins/15626/24 "2014-07-07T20:20:52Z")

</div>

FIY: I fixed the issue when you were using HTTPS

[https://github.com/discourse/discourse/commit/59b5ba7c0f3d4f2f86d00b5f08e0cfef8de4ffe1](https://github.com/discourse/discourse/commit/59b5ba7c0f3d4f2f86d00b5f08e0cfef8de4ffe1)

This also makes IPV6 lookups work thanks @coderholic!

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2014年九月8日 03:14 UTC](https://meta.discourse.org/t/add-ip-info-lookup-for-admins/15626/25 "2014-09-08T03:14:31Z")

</div>



[上一頁](https://meta.discourse.org/t/add-ip-info-lookup-for-admins/15626.md?page=1)
