public static List<String> getLocalIPAddresses() {
		List<String> addresses = new ArrayList<String>();
		List<NetworkInterface> nifs = null;
		try {
			nifs = Collections.list(NetworkInterface.getNetworkInterfaces());
			for (NetworkInterface nif : nifs) {
				// Bug fix: do not keep addresses for pseudo-devices like vmnet0
				// These pseudo-devices are used on Linux machines in ISAE labs
				// They are set upon installation of the VMware player software
				if (!nif.isLoopback() && !nif.getName().startsWith("vmnet")) {
					for (InetAddress addr : Collections.list(nif
							.getInetAddresses())) {
						if (addr instanceof Inet4Address)
							addresses.add(addr.getHostAddress());
					}
				}
			}
		} catch (SocketException e) {
			e.printStackTrace();
		}
		return addresses;
	}