Reputation: 1299
is there any chance to calculate country code from IPv6 ? In case of IPv4 I did it by multiplying particular ip parts by 256. Thanks for any answers.
Upvotes: 1
Views: 1324
Reputation: 7362
Short answer: you can't.
Long answer: There are geolocation databases where you can look up the country code.
One of those that I know of that support IPv6 is MaxMind https://support.maxmind.com/ipv6-data-faq/ or http://ipinfo.io/
Upvotes: 1