src/ClientIp.php
private function getRemoteIp()
    {
        if ($this->remote) {
            $ip = file_get_contents('http://ipecho.net/plain');

            if ($ip && self::isValid($ip)) {
                return $ip;
            }
        }
    }
private function getRemoteIp()
    {
        if ($this->remote) {
            $ip = file_get_contents('http://ipecho.net/plain');

            if ($ip && self::isValid($ip)) {
                return $ip;
            }
        }
    }
private function getRemoteIp ( ) { if ( $ this -> remote ) { $ ip = file_get_contents ( 'http://ipecho.net/plain' ) ; if ( $ ip && self :: isValid ( $ ip ) ) { return $ ip ; } } }
Returns the IP address from remote service.

@return string|null
Returns the IP address from remote service .