Geolocation discrepancies

Hi,
I’m attempting to use Geolocation and have installed a VCL from this page:

When I run the solution from that page, I get my correct location returned:

client-geo-city: feltham
client-geo-continent: EU
client-geo-country: GB
client-geo-latitude: 51.450
client-geo-longitude: -0.410
edge-geo-datacenter: CHI
fastly-client-ip: 2a02:c7c:6783:ca00:d857:7b1f:ed89:65b3

I have installed that on my Fastly service, and visiting the site that uses that service, I get the following results returned when I visit from the same laptop and location:

client-geo-city: dalwhinnie
client-geo-continent: EU
client-geo-country: GB
client-geo-latitude: 56.940
client-geo-longitude: -4.250
edge-geo-datacenter: LCY
fastly-client-ip: 149.241.150.24

Any idea why this might be?

Thanks for any help!

Cheers,
Dan

Hi Dan,

Thanks for reaching out on the forum.

It might be that the Fastly service you’ve created is doing a GeoIP lookup with a different IP (e.g. IPv6 vs IPv4) due to how requests are proxied through to https://fiddle.fastly.dev/ (which is what runs the demos from the Developer Hub) and that might yield different results.

If this is a concern or you would like more information, then I would recommend emailing support@fastly.com as they’ll be able to reach out to the relevant team to investigate and to provide a more definitive answer for you.

Thanks!

1 Like