Index: branches/5.3.x/units/downloads/download_helper.php =================================================================== diff -u -N -r15492 -r15671 --- branches/5.3.x/units/downloads/download_helper.php (.../download_helper.php) (revision 15492) +++ branches/5.3.x/units/downloads/download_helper.php (.../download_helper.php) (revision 15671) @@ -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']);