private static void handleClient() {
		try {
			String messageIn, messageOut;
			int numMessages = 0;
			InetAddress clientAddress = null;
			int clientPort;
			do {
				buffer = new byte[256];
				inPacket = new DatagramPacket(buffer, buffer.length);
				datagramSocket.receive(inPacket);

				clientAddress = inPacket.getAddress();
				clientPort = inPacket.getPort();
				messageIn = new String(inPacket.getData(), 0,
						inPacket.getLength());
				System.out.println("Message received");
				numMessages++;
				messageOut = "Message " + numMessages + ": " + messageIn;
				outPacket = new DatagramPacket(messageOut.getBytes(),
						messageOut.length(), clientAddress, clientPort);
				datagramSocket.send(outPacket);
			} while (true);
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			System.out.println("\n Closing connection..");
			datagramSocket.close();
		}

	}