I am attempting to validate the user IP address in a post. Joomla 3.5 and PHP 5.6.20.
I have read How can I grab the user's IP address? and tried this out, but the wrong IP address is being returned.
Yes, my client is in a NAT but I checked the external port on the router for my external dhcp address, plus I compared against whatismyipaddress.com to ensure I am not (too) crazy.
Most likely, this is due to a proxied setup by my hosting provider (they are now using CloudFlare). Any ideas on how to resolve the client ip address in this situation?