@Override
	public boolean connect(String host, int port) {
		log.fine("Connecting to:"+host+" on Port:"+port);
		if(side == Side.CLIENT) {
			if(SERVER != null) {
				disconnect(SERVER);
				try {
					SERVER.stop();
				} catch(Throwable e) {

					e.printStackTrace();
				}
				SERVER = null;
			}

			socket = new ConnectionEstablishment(host, port).getSocket();

			if(socket != null) {
				try {
					SERVER = new BasicIOHandler(socket.getInputStream(), socket.getOutputStream(), this, true);
					SERVER.start();
				} catch(IOException e) {
					e.printStackTrace();
					return false;
				}
			} else {
				return false;
			}
			return true;
		} else {
			return true;
		}
	}