Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NetworkInterface, Wifi or Lan?

Tags:

c#

How do i find out if a NetworkInterface is a Wifi or Lan Card in C#? And is there a safe way of determining this?

like image 719
Fredefl Avatar asked Jun 01 '11 12:06

Fredefl


People also ask

Which network adapter is for Wi-Fi?

TP-Link USB WiFi Adapter for PC(TL-WN725N), N150 Wireless Network Adapter for Desktop - Nano Size WiFi Dongle Compatible with Windows 10/7/8/8.1/XP/ Mac OS 10.9-10.15 Linux Kernel 2.6.

What is the purpose of wireless NIC?

A NIC provides a computer with a dedicated, full-time connection to a network. It implements the physical layer circuitry necessary for communicating with a data link layer standard, such as Ethernet or Wi-Fi. Each card represents a device and can prepare, transmit and control the flow of data on the network.

What is a wireless LAN Adaptor?

A wireless network adapter is a hardware component that allows a device to connect to a wireless network. It is extremely useful for home, office and businesses. They provide the wireless connection you need to be more productive.


1 Answers

You can use the NetworkInterfaceType property of the NetworkInterface class.

It will be equal to NetworkInterfaceType.Wireless80211 if the interface represents a WiFi adapter.

like image 81
Frédéric Hamidi Avatar answered Nov 15 '22 11:11

Frédéric Hamidi