private void startListenerThread() {
		new Thread(new Runnable() {
			public void run() {
				System.out.println("Local server is listening on port " + listenerSocket.getLocalPort());

				Socket socket_local;
				ObjectOutputStream ot_temp;
				try {
					socket_local = new Socket(localIp, localPort);
					ot_temp = new ObjectOutputStream(socket_local.getOutputStream());
					clientSocketPool.put(localName, socket_local);
					clientOutputPool.put(localName, ot_temp);
				} catch (UnknownHostException e1) {
					e1.printStackTrace();
				} catch (IOException e1) {
					e1.printStackTrace();
				}
				try {
					while (true) {
						Socket socket = listenerSocket.accept();
						startClientThread(socket);
					}
				} catch (IOException e) {
				} finally {
					try {
						listenerSocket.close();
					} catch (Exception e) {
					}
				}
			}
		}, "listener").start();
	}