X-Forwarded-For incorrect with IPv6 in certain cases



It happens from time to time that the cloudflare x-forwarded-for header (& also the cf-connecting-ip header) have an incorrect user IP.

e.g. google (& all other services) shows my IP as: 2405:205:3084:de6e:5801:cbd2:b2a3:e26

however the x-forwarded-for header says: 2405:205:3084:de6e:60eb:d306:5311:721e

In case it matters: The user who is affected by this is using a mobile phone internet connection.

What could be the issue here?


Considering the first half is the same, it makes me think it’s the same user.

I’ve noticed that my IPv6 address fluctuates depending on use. I’m not sure why that is, but it’s my guess that’s what’s happening here. That may be why my host doesn’t offer DDoS protection against IPv6.


Actually the problem is Cloudflare specific. Literally ALL other services that display your IP (from Google to obscure whats my ip checking sites and services like Zendesk) show the correct (same IP)

It’s only the cloudflare x-forwarded-for header that has that other IP.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.