I have Ip address of a device installed in the LAN Network. I need to get the device information like Name, mac address etc by passing this Ip address. When I tried to get the information using the following C# code, it throws exception "No such host is known". Devices may be printer / router or any other device.
IPHostEntry ip;
ip = Dns.GetHostEntry(ipaddress);
hostName = ip.HostName;
How to solve this issue. Any Ideas.