Problem with tracking IP

i use Piwik Tracking API, for tracking my visitor
i user the flowing code in my pages:

require_once “PiwikTracker.php”;
PiwikTracker::$URL = ‘http://piwik.mydomain.com/’;
$piwikTracker = new PiwikTracker( $idSite = 2 );
$piwikTracker->setTokenAuth("???my token auth???");
$piwikTracker->setIp($_SERVER[‘REMOTE_ADDR’]);

i add flowing code to test tracked ip:
echo $piwikTracker->ip;

in my output page, my ip show correctly.
but in piwik, for all users, piwik show only 1 ip.
this ip is my server ip.

please help me to solve this problem.

in o

Probably the token auth supplied is not correct?

Yes, I had a similar problem myself but the token was correct, but I didn’t give the User admin rights.

YES.token was correct
(JAVASCRIPT work good)