Problem with ipv6 and HTTP_CF_CONNECTING_IP

Hello guys,

I see that sometimes when user enters my website I can’t get his real ip using HTTP_CF_CONNECTING_IP if he has ipv6, instead of his IP I see an ip address of cloudflare network, for example this one 2a09:bac2:275f:137::1f:8c. When another user uses ipv4 I can see real user IP in HTTP_CF_CONNECTING_IP.

Please help me to solve this problem.

That is the visitor’s IP, not a Cloudflare IP.

Screenshot 2023-06-16 at 11.53.52 AM

For me it looks like Cloudflare ip:

AS13335 - Cloudflare, Inc.
ASN type: Hosting

inet6num:       2a09:bac2::/32
netname:        CLOUDFLAREWARP

If I understand it correctly - if user uses Cloudflare Warp - I can’t get his real ip?

And one more question - if I see that Cloudflare warp ip is from Germany for example - does it mean that a user is in Germany physically?

What if a user does some criminal activity, can we do something to detect his real ip if I know a time and cloudflare warp ip? An official request from authorities.

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