Solved

Interface used for internet connectivity

Posted on 2009-06-30
1
132 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

738 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