I need to get the network device name for the given IP address.For example a printer connected in a network.I have the IP address of the printer but I need to access its name using the corresponding IP address. I tried with dns.getHostByaddress(), but it didn't worked out properly.Let me know if any other solution exists.
string c = Dns.GetHostByAddress("xxx.xxx.x.xxx").HostName;
pdoc.PrinterSettings.PrinterName =c ;
It is a windows stand alone application using c# vs2010.