public function getClientIp()
    {
        $keys = array('HTTP_X_FORWARDED_FOR', 'CLIENT_IP', 'REMOTE_ADDR');
        foreach ($keys as $key) {
            if ($this->env->has($key) === true) {
                return $this->env->get($key);
            }
        }

        return null;
    }
public function getClientIp()
    {
        $keys = array('HTTP_X_FORWARDED_FOR', 'CLIENT_IP', 'REMOTE_ADDR');
        foreach ($keys as $key) {
            if ($this->env->has($key) === true) {
                return $this->env->get($key);
            }
        }

        return null;
    }
public function getClientIp ( ) { $ keys = array ( 'HTTP_X_FORWARDED_FOR' , 'CLIENT_IP' , 'REMOTE_ADDR' ) ; foreach ( $ keys as $ key ) { if ( $ this -> env -> has ( $ key ) === true ) { return $ this -> env -> get ( $ key ) ; } } return null ; }
Get client IP address

@return string
@api
Get client IP address