Solved

Interface used for internet connectivity

Posted on 2009-06-30
1
128 Views
Last Modified: 2012-05-11
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
Comment
Question by:Sumesh_Menon
1 Comment
 

Accepted Solution

by:
Sumesh_Menon earned 0 total points
ID: 24751419
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now