Dear all,
I just installed Piwik for the first time and it works all except the IP visitor. As I have not experience in piwik I hope the problem is due to something I don't undestand very well.
My installation is as follow:
- Server A is my web and ftp server installed in the DMZ (ip 192.168.100.50)
- Server B is in my intranet and is the server where I installed Piwik (ip. 192.168.200.44) and can’t be accessed outside the firewall
- The firewall’s ip is 192.168.100.99
- In server A (web server) I copy of PiwikTracker.php that I include in the pages that I want to track in this way (more or less):
require_once ("PiwikTracker.php" )
PiwikTraker::$URL = "http://serverB/piwik";
$p = new PiwikTracker(1); Site 1
$p->doTrackPageView();
All the logs works fine but the IP visitors is always “192.168.100.99” (the firewall ip) (is the same when I visits from my intranet or outside).
I look the documentation but I don’t know what I must do for log the real IP. I can see that in serverA the "$_SERVER[‘REMOTE_ADD’] is the visitors IP but I can NOT send or force it to server B.
Any idea ?
TIA,
blas