How to get a list of network connections on my .NET computer?

how to get a list of network connections on my computer using c # vpn or others

in Windows 7 this way Control Panel \ Network and Internet \ Network Connections

I need to write a function to connect to the internet in C #

+3
source share
1 answer

I assume that you are looking for a list of network interfaces.

The System.Net.NetworkInformation.NetworkInterface class is probably what you need, specifically GetAllNetworkInterfaces () .

, , , NetworkInterfaceType, loopback tunneling.

+5

Source: https://habr.com/ru/post/1739810/


All Articles