Non physical network adapters like VPN connections tend not to have fixed MAC addresses. For wireless (802.11 based) adapters hardware (MAC) address randomization is frequently applied to avoid tracking with many modern operating systems support this out of the box. This makes wireless network adapters bad candidates for device identification.
To this end I implemented the NetworkAdapterDeviceIdComponent class and a new AddMacAddress extension method. I had to work some magic because prior to Windows 8 it is pretty difficult to figure out if a network adapter is wireless or not using WMI.
Basic unit tests are included but are limited as the outcome ultimately depends on the hardware the test is running on.
Non physical network adapters like VPN connections tend not to have fixed MAC addresses. For wireless (802.11 based) adapters hardware (MAC) address randomization is frequently applied to avoid tracking with many modern operating systems support this out of the box. This makes wireless network adapters bad candidates for device identification.
To this end I implemented the
NetworkAdapterDeviceIdComponent
class and a newAddMacAddress
extension method. I had to work some magic because prior to Windows 8 it is pretty difficult to figure out if a network adapter is wireless or not using WMI.Basic unit tests are included but are limited as the outcome ultimately depends on the hardware the test is running on.