Testing Internet connectin programatically

P

PeterH

I am developing a web service client as a VB.Net Windows Forms
application. I need to test whether the computer running my application
has an open Internet connection and, if so, whether it is a fast one or
a slow dial-up. What would be the best way to do that in managed code?

Peter
 
G

Guest

The most foolproof way is to connect to a Internet server using the
WebRequest class. You can even test relative speed to find out the connection
quality if you have average response times available.

Rgd,
Anand
VB.NET MVP
http://www.dotnetindia.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top