All visitors have the same IP

I’ve done some digging up of old threads but am still experiencing this issue.

Our Piwik install is on a dedicated server, on a website that is not using CloudFlare. One of our other websites that we are tracking is hosted on the same dedicated server and is using CloudFlare, is recording the same IP for each visitor.

The IP that’s being recorded is the dedicated servers IP, not CloudFlares. I am looking to record the users actual IP.

We’ve tried a number of combinations of the following lines in our config file:
proxy_client_headers[] = "HTTP_CF_CONNECTING_IP"
proxy_client_headers[] = "HTTP_X_FORWARDED_FOR"
proxy_host_headers[] = "HTTP_X_FORWARDED_HOST"
proxy_client_headers[] = “HTTP_CLIENT_IP”

We are tracking with Javascript via a local piwik.php file on our website so as to hide the URL of our actual Piwik install. If we detect that the user is a bot (via User Agent), we track with the Tracker API (PiwikTracker.php).

Does anyone know how we can get visitors actual IP address to be logged in this situation?

Thanks in advance,

Looks like this was solved by waiting and coming back later. I’m assuming that it kept showing my activity under the last IP because the session did not end. Thanks for a wonderful platform.