public static void printNetworkInterfaces() {
		try {
			Enumeration<NetworkInterface> nets = NetworkInterface.getNetworkInterfaces();
			for (NetworkInterface netint : Collections.list(nets)) {
				printNetworkInterfaceInfo(netint);
			}
		} catch (SocketException e) {
			System.out.println("Failed to get network interfaces: " + e.getMessage());
		}
	}