How do I get MAC address of a host?


Previously for obtaining a MAC address we need to use a native code as a solution. In JDK 1.6 a new method is added in the java.net.NetworkInterface class, this method is getHardwareAddress().

Filed in: Java Networking

Leave a Reply

Submit Comment

© 2014 Java Examples - Developed with