Heidi
(Heidi)
November 3, 2016, 9:06am
1
Hi,
I have a server at Scaleway
They are using a custom NAT system (proxy?) and on the Piwik log, I always get the internal server’s IP instead of real visitor’s IP
I have found on the FAQ entry Installation - Analytics Platform - Matomo but it doesn’t work.
Is someone here found a solution for scaleway server, and if not, is someone can help me to find the issue ?
Valdhor
(Steve Mercer)
November 4, 2016, 1:34pm
2
I don’t know but they are probably using a load balancer.
Depending on how you log through Piwik (JS or Apache Logs) There are a couple ways to get this working.
For Apache Logs look at http://www.laymance.com/blog/apache-load-balancers-and-log-files/ .
For JS it becomes a little more involved. The best idea is to use a IP lookup service to determine the router WAN IP (You don’t want a users NAT address behind their personal router) then send that via a Piwik JS API call. See http://stackoverflow.com/questions/391979/how-to-get-clients-ip-address-using-javascript-only for help on getting client IP.
Heidi
(Heidi)
November 4, 2016, 2:01pm
3
Thank you, I will dig in these ways