java.net.NetworkInterfaceを使う。 public static void main(String[] args) throws SocketException{ Enumeration<NetworkInterface> nics = NetworkInterface.getNetworkInterfaces(); while(nics.hasMoreElements()){ NetworkInterface nic = nics.nextElement(); String s = ""; byte[] hardwareAddress = nic.getHardwareAddress(); if(hardwareAddress != null){ for(byte b : hardwareAddress){ s += String.format("%02X ", b