Retrieve the actual IPv4 IP

Hello.

I have an issue retrieving the actual IP from the user that accesses the website. I tried to rule the function of showing IPv6, yet the IPs shown were incorrect.
I am properly using $_SERVER['HTTP_CF_CONNECTING_IP']; to try it, but it doesn't help much. I am getting an IPv4 that is not the real user's one.

How can I ensure that the IP shown is correct? (I am using IIS)
Was this page helpful?