src/reCAPTCHA.php
public function setRemoteIp($ip = null)
    {
        if (!is_null($ip))
            $this->remoteIp = $ip;
        else
            $this->remoteIp = $_SERVER['REMOTE_ADDR'];

        return $this;
    }
public function setRemoteIp($ip = null)
    {
        if (!is_null($ip))
            $this->remoteIp = $ip;
        else
            $this->remoteIp = $_SERVER['REMOTE_ADDR'];

        return $this;
    }
public function setRemoteIp ( $ ip = null ) { if ( ! is_null ( $ ip ) ) $ this -> remoteIp = $ ip ; else $ this -> remoteIp = $ _SERVER [ 'REMOTE_ADDR' ] ; return $ this ; }
Set remote IP address

@param string $ip
@return object
Set remote IP address