private String getLANIpAddress() {
		// returns IP address in wifi network
		try {
			boolean firstAddress = true;
			Enumeration<NetworkInterface> networkInterfaces = NetworkInterface
					.getNetworkInterfaces();
			while (networkInterfaces.hasMoreElements()) {
				NetworkInterface networkInterface = networkInterfaces
						.nextElement();
				// filters out 127.0.0.1 and inactive interfaces
				if (networkInterface.isLoopback() || !networkInterface.isUp())
					continue;
				Enumeration<InetAddress> addresses = networkInterface
						.getInetAddresses();
				while (addresses.hasMoreElements()) {
					InetAddress ipAddress = addresses.nextElement();
					if (ipAddress.getHostAddress().contains(".")) {
						if (firstAddress) {
							firstAddress = false;
						} else
							return ipAddress.getHostAddress();
					}
				}
			}
		} catch (SocketException e) {
			logExceptionMessage(e);
		}
		return OFFLINE;
	}