Solved

Interface used for internet connectivity

Posted on 2009-06-30
1
133 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

734 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