code: public void setIP(byte[] ip) {
          buffer[INDEX_IP] = ip[0];
          buffer[INDEX_IP + 1] = ip[1];
          buffer[INDEX_IP + 2] = ip[2];
          buffer[INDEX_IP + 3] = ip[3];
      }
docs: Set the IP address. This expects an array of four bytes in host order.