public InetAddress getIP() {
		InetAddress a = null;
		try {
			for (Enumeration<NetworkInterface> en = NetworkInterface
					.getNetworkInterfaces(); en.hasMoreElements();) {
				NetworkInterface intf = en.nextElement();
				for (Enumeration<InetAddress> enumIpAddr = intf
						.getInetAddresses(); enumIpAddr.hasMoreElements();) {
					InetAddress inetAddress = enumIpAddr.nextElement();
					if (!inetAddress.isLoopbackAddress()
							&& !inetAddress.isLinkLocalAddress()
							&& inetAddress.isSiteLocalAddress()) {
						a = inetAddress;
					}

				}
			}
		} catch (SocketException ex) {
			Gdx.app.log(getClass().getName(),
					"Network#getIP() Probleme vous n'etes pas sous le systeme android.");
		}

		if (a != null)
			return a;
		try {
			return InetAddress.getLocalHost();
		} catch (UnknownHostException e) {
			System.exit(-1);
		}
		throw new RuntimeException("ERREUR SYSTEME !");
	}