Can't record 'location_ip' right


(frankvictor) #1

Hello,everyone.I’ve been using Piwik for a couple of days, it’s an excellent software and a great help to my Summer Intern.
But I discover that my Piwik can’t record the right ‘location_ip’ in table ‘piwik_log_visit’.In my mysql,there are ony three values for this property:
2886729985,3688939269,3402536845
e.i:
172.16.1.1, 219.224.191.5, 202.206.151.141
and only the second and the third one seems valid.
But among 1026 records in mysql, 1018 are the first one(172.16.1.1 invalid).
I think its must be wrong somewhere,who can help me figure out where the problem is?
thank you!


(vipsoft) #2

172.16.1.1 is a reserved netblock. This is probably the address of your reverse proxy. Please contact your sysadmin about how it is translating remote IP addresses. The defacto standard is to pass along the remote ip address in HTTP_X_FORWARDED_FOR or HTTP_CLIENT_IP.


(frankvictor) #3

thanks very much.I’ll try the method you told me!