Index: branches/5.2.x/units/downloads/download_helper.php =================================================================== diff -u -N -r15172 -r15568 --- branches/5.2.x/units/downloads/download_helper.php (.../download_helper.php) (revision 15172) +++ branches/5.2.x/units/downloads/download_helper.php (.../download_helper.php) (revision 15568) @@ -1,6 +1,6 @@ SetDBField('ProductName', $product_object->GetField('Name')); $down_object->SetDBField('FileId', $file_info['FileId']); $down_object->SetDBField('Filename', $file_info['FilePath']); - $down_object->SetDBField('IPAddress', $_SERVER['REMOTE_ADDR']); + $down_object->SetDBField('IPAddress', $this->Application->getClientIp()); $down_object->SetDBField('StartedOn_date', $file_info['download_start']); $down_object->SetDBField('StartedOn_time', $file_info['download_start']);