core-bundle/src/Resources/contao/library/Contao/Environment.php
protected static function ip()
	{
		$request = System::getContainer()->get('request_stack')->getCurrentRequest();

		if ($request === null)
		{
			return '';
		}

		return $request->getClientIp();
	}
protected static function ip()
	{
		$request = System::getContainer()->get('request_stack')->getCurrentRequest();

		if ($request === null)
		{
			return '';
		}

		return $request->getClientIp();
	}
protected static function ip ( ) { $ request = System :: getContainer ( ) -> get ( 'request_stack' ) -> getCurrentRequest ( ) ; if ( $ request === null ) { return '' ; } return $ request -> getClientIp ( ) ; }
Return the real REMOTE_ADDR even if a proxy server is used

@return string The IP address of the client
Return the real REMOTE_ADDR even if a proxy server is used