private void connect() throws ConnectionException {
int port = DEFAULT_PORT;
if (baseServerPort > 0) port = baseServerPort;
if (baseServerName == null) {
LOGGER.error("Unknow Base Server name");
throw new ConnectionException("Unknow Base Server name");
}
try {
httpsServer = new Socket(baseServerName, port);
iStream = new DataInputStream(httpsServer.getInputStream());