@@ -0,0 +1,882 @@
+package de.domisum.lib.auxilium.util;%0A%0Aimport de.domisum.lib.auxilium.util.java.annotations.APIUsage;%0A%0Aimport java.net.InetAddress;%0Aimport java.net.NetworkInterface;%0Aimport java.net.SocketException;%0Aimport java.net.UnknownHostException;%0A%0A@APIUsage%0Apublic interface NetworkUtil%0A%7B%0A%0A%09@APIUsage static String getMacAddress()%0A%09%7B%0A%09%09byte%5B%5D macAddressAsBytes;%0A%09%09try%0A%09%09%7B%0A%09%09%09InetAddress ip = InetAddress.getLocalHost();%0A%09%09%09NetworkInterface network = NetworkInterface.getByInetAddress(ip);%0A%09%09%09macAddressAsBytes = network.getHardwareAddress();%0A%09%09%7D%0A%09%09catch(SocketException%7CUnknownHostException e)%0A%09%09%7B%0A%09%09%09throw new RuntimeException(e);%0A%09%09%7D%0A%0A%09%09StringBuilder macAddress = new StringBuilder();%0A%09%09for(int i = 0; i %3C macAddressAsBytes.length; i++)%0A%09%09%09macAddress.append(String.format(%22%2502X%25s%22, macAddressAsBytes%5Bi%5D, (i %3C macAddressAsBytes.length-1) ? %22-%22 : %22%22));%0A%0A%09%09return macAddress.toString();%0A%09%7D%0A%0A%7D%0A

Create NetworkUtil with #getMacAddress() method