• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 137
  • Last Modified:

Interface used for internet connectivity

I have multiple network interfaces (ethernet, Wireless80211, ppp etc.) avilable  on my laptop. I need to find out which all interfaces are providing internet connectivity.

Any help on this please?
0
Sumesh_Menon
Asked:
Sumesh_Menon
1 Solution
 
Sumesh_MenonAuthor Commented:
I method i have already found out.
1. Check intenet connectivity by using:
System.Net.IPHostEntry objIPHE = System.Net.Dns.GetHostByName("www.google.com");
2. Use ping to find out 1st hop IP.
3. Compare this IP with Gateway of all interfaces.

Wondering if there is any better alternative?
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now