@sebastianw opened this Issue on August 19th 2015


it seems Geolocation is not working at the moment for IPv6 addreses. I tried the PHP and PECL backends and none could locate IPv6 addresses. Also I tried to look trough older issues regarding this but I'm confused about the current status. Is this supposed to work?

@tsteur commented on August 20th 2015 Member

I think PECL doesn't support it yet see #6624 but PHP should work. I think it was added in https://github.com/piwik/piwik/pull/6690 What exactly does not work for you? In the other issue (#6690) there's some discussion about IPv6 not detecting the location correctly. Is this what you mean?

@sebastianw commented on August 20th 2015

Yes, I have a lot of IPv6 locations that just show up as unkown. When I look at the source I don't think that the GeoLiteCityv6.dat is even loaded.

@mattab commented on September 20th 2015 Member

Yes, I have a lot of IPv6 locations that just show up as unkown.

Do all IPv6 show as unknown, or only "a lot" of them? if some are being geo located then it's working from the Piwik side, and likely the IPv6 not geo located are because the geo location database is still not precise for ipv6 addresses. Could you send some example IPv6 not geo located and some that are?

@sebastianw commented on October 2nd 2015

No, just "a lot" of them. My work IP address shows up unknown, take 2001:780:53d2::1 for example. Some addresses that are successfully geo-located are for Deutsche Telekom addresses.

@mattab commented on October 2nd 2015 Member

@sebastianw Could you paste a few examples of IPv6 addresses that don't geo locate?

and a few examples that do geolocate OK?


@mattab commented on October 2nd 2015 Member
@sebastianw commented on October 31st 2015

but is that coming from the ipv6 file or is it somehow using the IPv4 file for that? because I didn't see any attempt to access the ipv6 database

@angristan commented on January 10th 2016

Hello, any news for IPv6 support ?

@mattab commented on January 12th 2016 Member

Hi @Angristan - no news yet, and we likely won't be working on this feature for a while. We would welcome a pull request for this nice feature!

@grzchr15 commented on December 26th 2016

http://www.tcpiputils.com/browse/ipv6-address/2001:9d0:10::1 shows correct IP address 2001:9d0:10::1
Location Austria (AT) flag ASN number 8387
ASN name (ISP) T-Systems Austria GesmbH

Shows incorrect

USNJMiddletown73240.397-74.10807748AT&T WirelessAT&T WirelessamnNordamerikaVereinigte StaatenNew Jersey2001:9d0:10::1
@mattab commented on December 27th 2016 Member

We need help to make this one work. Pull request very welcome

@grzchr15 commented on December 27th 2016

I still struggle how to help implement it. I have a intranet list of ranges and the maxmind dbs. I think in v3.x i need to create a locationprovider. Any more hints where i need to hook , change db schema?, .. docs.
And how to debug the new parts and not complete piwik flows

@mattab commented on December 27th 2016 Member

our developer docs are here: http://developer.piwik.org/
There's some work being done in GeoIP2 see: https://plugins.piwik.org/GeoIP2/ #4487

@mattab commented on February 19th 2018 Member

update: we are planning to implement the new Geoip2 support soon, which should also bring support for Ipv6 geo-location.

@sgiehl commented on April 30th 2018 Member

Note: GeoIP2 will fully support IPv6 geolocating.
But we won't fix geolocation IPv6 addresses with GeoIP Legacy (PECL)

@mattab commented on May 2nd 2018 Member

Fixed in #4487

This Issue was closed on May 2nd 2018
Powered by GitHub Issue Mirror