public void start() {
		running = true;
		t = new Thread(new Runnable() {

			@Override
			public void run() {
				try {
					serverSocket = new ServerSocket(10188);
				} catch (IOException e) {
					System.err.println("Could not listen on port: 10188 (is it in use?.");
					e.printStackTrace();
				}
				try {
					clientSocket = serverSocket.accept();
				} catch (IOException e) {
					System.err.println("--- Server connection failed ---");
				}
				if (clientSocket == null)
					return;
				PrintWriter out = null;
				try {
					out = new PrintWriter(clientSocket.getOutputStream(), true);
				} catch (IOException e) {
					e.printStackTrace();
				}
				BufferedReader in = null;
				try {
					in = new BufferedReader(new InputStreamReader(clientSocket
							.getInputStream()));
				} catch (IOException e) {
					e.printStackTrace();
				}
				String input;
				String output;
				ServerProtocol cp = new ServerProtocol();

				output = cp.processInput(null);
				out.println(output);
				try {
					pr = new PrintWriter(clientSocket.getOutputStream(), true);
				} catch (IOException e1) {
					e1.printStackTrace();
				}
				while (running) {
					try {
						while ((input = in.readLine()) != null) {
							cp.processInput(input);
						}
					} catch (Exception e) {
						e.printStackTrace();
					}
				}
			}

		}, "ConnectionThread-Server");
		t.start();
	}