app/code/community/Adyen/Payment/Helper/Data.php
public function getClientIp()
    {
        if (isset($_SERVER['HTTP_CLIENT_IP'])) {
            $ipaddress = $_SERVER['HTTP_CLIENT_IP'];
        } elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
            $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
        } elseif (isset($_SERVER['HTTP_X_FORWARDED'])) {
            $ipaddress = $_SERVER['HTTP_X_FORWARDED'];
        } elseif (isset($_SERVER['HTTP_FORWARDED_FOR'])) {
            $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];
        } elseif (isset($_SERVER['HTTP_FORWARDED'])) {
            $ipaddress = $_SERVER['HTTP_FORWARDED'];
        } elseif (isset($_SERVER['REMOTE_ADDR'])) {
            $ipaddress = $_SERVER['REMOTE_ADDR'];
        } else {
            $ipaddress = '';
        }

        return $ipaddress;
    }
public function getClientIp()
    {
        if (isset($_SERVER['HTTP_CLIENT_IP'])) {
            $ipaddress = $_SERVER['HTTP_CLIENT_IP'];
        } elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
            $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
        } elseif (isset($_SERVER['HTTP_X_FORWARDED'])) {
            $ipaddress = $_SERVER['HTTP_X_FORWARDED'];
        } elseif (isset($_SERVER['HTTP_FORWARDED_FOR'])) {
            $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];
        } elseif (isset($_SERVER['HTTP_FORWARDED'])) {
            $ipaddress = $_SERVER['HTTP_FORWARDED'];
        } elseif (isset($_SERVER['REMOTE_ADDR'])) {
            $ipaddress = $_SERVER['REMOTE_ADDR'];
        } else {
            $ipaddress = '';
        }

        return $ipaddress;
    }
public function getClientIp ( ) { if ( isset ( $ _SERVER [ 'HTTP_CLIENT_IP' ] ) ) { $ ipaddress = $ _SERVER [ 'HTTP_CLIENT_IP' ] ; } elseif ( isset ( $ _SERVER [ 'HTTP_X_FORWARDED_FOR' ] ) ) { $ ipaddress = $ _SERVER [ 'HTTP_X_FORWARDED_FOR' ] ; } elseif ( isset ( $ _SERVER [ 'HTTP_X_FORWARDED' ] ) ) { $ ipaddress = $ _SERVER [ 'HTTP_X_FORWARDED' ] ; } elseif ( isset ( $ _SERVER [ 'HTTP_FORWARDED_FOR' ] ) ) { $ ipaddress = $ _SERVER [ 'HTTP_FORWARDED_FOR' ] ; } elseif ( isset ( $ _SERVER [ 'HTTP_FORWARDED' ] ) ) { $ ipaddress = $ _SERVER [ 'HTTP_FORWARDED' ] ; } elseif ( isset ( $ _SERVER [ 'REMOTE_ADDR' ] ) ) { $ ipaddress = $ _SERVER [ 'REMOTE_ADDR' ] ; } else { $ ipaddress = '' ; } return $ ipaddress ; }
Get the client ip address
@return string
Get the client ip address