I'm trying to figure out how I can determine, through C# code, if my communication with a remote machine uses the WLAN card or a wired NIC on the local machine.
For instance the remote machine is accessed through either ODBC connection to a SQL database, or a UNC fileshare. How can I detect if the communication is done through WLAN or wired LAN?
The purpose is to warn user that the application does not like communicating with the remote machine over WLAN.
I'm open for both regular C#+.NET Framework solutions, but can also use WMI if it helps.
The next step is to determine if the access is over a WAN/VPN connection, but the primary question is the first one.
Frode