src/Koldy/Request.php
public static function ipWithProxy($delimiter = ','): string
    {
        $ip = self::ip();

        if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $ip != $_SERVER['HTTP_X_FORWARDED_FOR']) {
            $ip .= "{$delimiter}{$_SERVER['HTTP_X_FORWARDED_FOR']}";
        }

        return $ip;
    }
public static function ipWithProxy($delimiter = ','): string
    {
        $ip = self::ip();

        if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $ip != $_SERVER['HTTP_X_FORWARDED_FOR']) {
            $ip .= "{$delimiter}{$_SERVER['HTTP_X_FORWARDED_FOR']}";
        }

        return $ip;
    }
public static function ipWithProxy ( $ delimiter = ',' ) : string { $ ip = self :: ip ( ) ; if ( isset ( $ _SERVER [ 'HTTP_X_FORWARDED_FOR' ] ) && $ ip != $ _SERVER [ 'HTTP_X_FORWARDED_FOR' ] ) { $ ip .= "{$delimiter}{$_SERVER['HTTP_X_FORWARDED_FOR']}" ; } return $ ip ; }
Get remote IP address with additional IP sent over proxy if exists

@param string $delimiter

@return string
@throws Exception
@example 89.205.104.23,10.100.10.190
Get remote IP address with additional IP sent over proxy if exists