@sebastianw opened this Issue on August 19th 2015

Hello,

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 Owner

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 Owner

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 Owner

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

and a few examples that do geolocate OK?

Thanks!

@mattab commented on October 2nd 2015 Owner
@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 Owner

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

http://demo.piwik.org/index.php?module=API&method=UserCountry.getLocationFromIP&ip=2001:9d0:10::1&format=xml
Shows incorrect

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

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 Owner

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

Powered by GitHub Issue Mirror