private static void handeClient() {
		Socket link = null;
		try {
			/*
			 * Step 2: put the server into a waiting state
			 */
			link = serverSocket.accept();
			/*
			 * Step 3 : set up input and output streams between the server and
			 * the client
			 */
			Scanner input = new Scanner(link.getInputStream());
			PrintWriter output = new PrintWriter(link.getOutputStream(), true);

			int numMessages = 0;
			String message = input.nextLine();
			while (!message.equals("bye")) {
				System.out.println("Message received.");
				numMessages++;
				/*
				 * Step 4 : Send and receive data
				 */
				// send data to output
				output.println("Message " + numMessages + ": " + message);
				// get data from input
				input.nextLine();
			}
			output.println(numMessages + " messages received.");

		} catch (IOException ioEx) {
			ioEx.printStackTrace();
		} finally {
			try {
				System.out.println("Closing connection...");
				/*
				 * Step 5 : close the connection
				 */
				serverSocket.close();
			} catch (Exception e) {
				System.out.println("Unable to disconnect!");
				System.exit(1);
			}
		}

	}