private void waitForConnection() throws IOException {
		showMessage("Waiting for someone to connect...");
		connection = server.accept();
		showMessage("Now connected to " + connection.getInetAddress().getHostName());
	}