// 根据ip获取对应mac
String mac = "";
String ip = "192.168.0.194":
InetAddress address = InetAddress.getByName(ip);
mac = NetUtil.getMacAddress(address);
mac = mac.replace("-", ":").toLowerCase();
2023-12-29 11:03:40
// 根据ip获取对应mac
String mac = "";
String ip = "192.168.0.194":
InetAddress address = InetAddress.getByName(ip);
mac = NetUtil.getMacAddress(address);
mac = mac.replace("-", ":").toLowerCase();