public void connectAssSlave(String hostname) {
		String[] hostArray = hostname.split(":");
		
		if (hostArray.length != 2) {
			System.out.println("Invalid Hostname!");
		}
		
		String host = hostArray[0];
		int port = Integer.parseInt(hostArray[1]);
		
		try {
			sck = new SocketWrapper(new Socket(host, port));
		} catch (UnknownHostException e) {
			System.out.println("Unknown host. Could not connect to " + host + ".");
			return;
		} catch (IOException e) {
			return;
		}
		
		if (sck != null) {
			isMaster = false;
			server.stop();
			lm.stop();
			sl = new SlaveListener(sck, this);
			try {
				sl.start();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}