private void readFromSocket() throws Exception {
		clientSocket = serverSocket.accept();
		socketInputStream = clientSocket.getInputStream();
		BufferedReader socketReader = new BufferedReader(new InputStreamReader(socketInputStream));
		String inputLine = null;
		while ((inputLine = socketReader.readLine()) != null) {
			if (!stopListening) {
				if (inputLine.equals("ping"))
					break;
				final String inputLine2 = inputLine;
				EventQueue.invokeLater(new Runnable() {
					public void run() {
						navigator.visitLocation(inputLine2);
						toFront();
					}
				});
			}
			break;
		}
	}