Why Cloudflare sending the wrong IP4


I need to access the user IP4 for my application and I enabled the IP4 configurations for my website.

The issue is the Cloudflare store not matching client IP to the “Cf-Pseudo-IPv4” parameter.

I can access IP6 using “X-Forwarded-For” which matches the user expected IP; however, IP4 not matching the user public IP (which is displayed in all IP detecting websites).

Pseudo ipv4 doesn’t get their actual IPv4 address. It maps the ipv6 address to a class E ipv4 address:

Class E IPv4 addresses are designated as experimental and are not used for production Internet traffic.

1 Like

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