How to determine MAC Address of the actual physical network card — not virtual network interfaces created by VPN's (.NET C#)

前端 未结 5 1962
我在风中等你
我在风中等你 2020-12-01 07:00

Background

I\'m trying to get obtain a unique identifier out of a computer and want to be able to reliably return the same MAC address each time. Trust me I have

5条回答
  •  眼角桃花
    2020-12-01 07:07

    MAC addresses are physical hardware addresses. I can't test on this pc, but I don't think you will get a new MAC address if a virtual connection is added because it's not an actual piece of hardware. It will be another connection, but not another MAC address.

    So guaranteeing that you get the same MAC address every time depends on the same pieces of hardware being attached to the machine and you using the same algorithm to pick from that hardware.

提交回复
热议问题