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

前端 未结 5 1954
我在风中等你
我在风中等你 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:04

    The first three bytes of the MAC address are a manufacturer ID. You could blacklist certain manufacturer IDs known to be unsuitable for your purposes, and ignore those interfaces.

    Relying on the speed is not likely to be a good idea, because there's no reason why a VPN interface couldn't report itself as having gigabit speed.

提交回复
热议问题