In my C# application, I want to get my MAC address by using NetworkInterface class as the following:
NetworkInterface
NetworkInterface nic in NetworkInterface.Ge
Try Something like this:
// Insert Colons on MAC string MACwithColons = ""; for (int i = 0; i < MAC.Length; i++) { MACwithColons = MACwithColons + MAC.Substring(i, 2) + ":"; i++; } MACwithColons = MACwithColons.Substring(0, MACwithColons.Length - 1); // Remove the last colon