I am currently facing an issue where the HTTP_CF_CONNECTING_IP header is only sending the visitor’s IPv6 address, but I need to retrieve the user’s original IP address in IPv4 format.
I would greatly appreciate it if anyone could provide me with guidance on how to retrieve the user’s original IP address in IPv4 format.
It won’t give you the “real” ipv4 when the user is connecting through IPv6 (as noted, this doesn’t exist), but it will give a fake one that is likely to be unique.