Class MACAddress


  • public class MACAddress
    extends java.lang.Object

    A class for fetching the MAC address of one of the local host network interfaces.

    Works on Linux, Solaris, Darwin, Windows.

    • Constructor Detail

      • MACAddress

        public MACAddress()
    • Method Detail

      • getMACAddress

        public long getMACAddress()
      • getMacAddressFromNetworkInterfaceAPI

        protected static long getMacAddressFromNetworkInterfaceAPI()
      • getMacAddressFromSystemCommandCall

        protected long getMacAddressFromSystemCommandCall()
      • main

        public static void main​(java.lang.String[] arg)

        Testing.

        Parameters:
        arg - ignored