public static void runServer() throws IOException {

	
		ServerSocket chatServer = null;
		try {
			System.out.println("Waiting for clients on port: "
					+ local_port);
			chatServer = new ServerSocket(local_port); 
		} catch (IOException e) {
			System.err.println("Could not listen on port: " + local_port);
			System.err.println(e);
			
		}


		Socket client = null;
		try {
			int x = 0;
			for (x = 0; x < 8; x++) {
				client = chatServer.accept();
				new clientThread(client, chatServer).start();
				System.out.println("Peer connection Estahblished");
			}

		} catch (IOException e) {

		}

		try {
			chatServer.setSoTimeout(20000);
		} catch (SocketException se) {

		}

	}