how to get network connection list in my computer with c#
vpn list or other
in windows 7 this path Control Panel\Network and Internet\Network Connections
i need for write a function to connect to internet in c#
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you’re looking for the list of network interfaces.
The System.Net.NetworkInformation.NetworkInterface class is probably what you are after, specifically the GetAllNetworkInterfaces() method.
To get the same list as Control Panel, I suspect you will also need to filter on the NetworkInterfaceType property value, to skip loopback and tunneling interfaces.