public function rotateIp() {
        if(sizeof($this->ipAddresses) == 1) {
            return true;
        }

        $this->ipIndex   = ($this->ipIndex + 1) % sizeof($this->ipAddresses);
        $this->ipAddress = $this->ipAddresses[$this->ipIndex];

        $this->initSocket();

        return $this->ipIndex == 0;
    }