protected function getRequestIp()
    {
        if (isset($this->server['HTTP_X_FORWARDED_FOR'])) {
            return $this->server['HTTP_X_FORWARDED_FOR'];
        }

        if (isset($this->server['REMOTE_ADDR'])) {
            return $this->server['REMOTE_ADDR'];
        }
    }
protected function getRequestIp()
    {
        if (isset($this->server['HTTP_X_FORWARDED_FOR'])) {
            return $this->server['HTTP_X_FORWARDED_FOR'];
        }

        if (isset($this->server['REMOTE_ADDR'])) {
            return $this->server['REMOTE_ADDR'];
        }
    }
protected function getRequestIp ( ) { if ( isset ( $ this -> server [ 'HTTP_X_FORWARDED_FOR' ] ) ) { return $ this -> server [ 'HTTP_X_FORWARDED_FOR' ] ; } if ( isset ( $ this -> server [ 'REMOTE_ADDR' ] ) ) { return $ this -> server [ 'REMOTE_ADDR' ] ; } }
Get the request ip.

@return string|null
Get the request ip .