public static function getClientIp($checkProxy = true)
    {
        $result = null;
        if ($checkProxy) {
            $result = self::getServer('HTTP_CLIENT_IP') ?? self::getServer('HTTP_X_FORWARDED_FOR') ?? null;
        }
        return $result ?? self::getServer('REMOTE_ADDR');
    }
public static function getClientIp($checkProxy = true)
    {
        $result = null;
        if ($checkProxy) {
            $result = self::getServer('HTTP_CLIENT_IP') ?? self::getServer('HTTP_X_FORWARDED_FOR') ?? null;
        }
        return $result ?? self::getServer('REMOTE_ADDR');
    }
public static function getClientIp ( $ checkProxy = true ) { $ result = null ; if ( $ checkProxy ) { $ result = self :: getServer ( 'HTTP_CLIENT_IP' ) ?? self :: getServer ( 'HTTP_X_FORWARDED_FOR' ) ?? null ; } return $ result ?? self :: getServer ( 'REMOTE_ADDR' ) ; }
Get the client's IP address

@param  bool $checkProxy

@return string
Get the client s IP address