Index: branches/5.2.x/core/units/users/users_event_handler.php =================================================================== diff -u -N -r15545 -r15569 --- branches/5.2.x/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 15545) +++ branches/5.2.x/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 15569) @@ -1,6 +1,6 @@ SetError('Username', 'banned'); } - $object->SetDBField('IPAddress', $_SERVER['REMOTE_ADDR']); + $object->SetDBField('IPAddress', $this->Application->getClientIp()); if ( !$this->Application->isAdmin ) { $object->SetDBField('FrontLanguage', $this->Application->GetVar('m_lang'));