i am using NetworkInterface class to get the MAC address but i am getting null in my code NetworkInterface ni = NetworkInterface.getByInetAddress(inetAddr); .I am getting null in ni object,pleas suggest me the way to get the mac address of a device on lan.
Thanks in advance.