NetworkInterface, Wifi or Lan?

How to find out if NetworkInterface is a Wi-Fi or Lan card in C #? And is there a safe way to determine this?

+5
source share
1 answer

You can use the NetworkInterfaceType NetworkInterface property .

It will be equal NetworkInterfaceType.Wireless80211if the interface is a WiFi adapter.

+8
source

All Articles