How can I get the MAC address of network printer via C#?
问题 I wanna get the identifier of a Intermec barcode printer, it uses network interface, so I think of MAC address. How can I get the MAC address via C#? Or I can get the serial number of the printer directly? 回答1: I am assuming that you have the IP address of the network printer and your pc and the printer are at the same local network. You can give this program a try. static void Main(string[] args) { PhysicalAddress pa = LocateMacAddress(IPAddress.Parse("172.16.0.99")); Console.WriteLine(pa