Testing Internet connectin programatically

  • Thread starter Thread starter PeterH
  • Start date Start date
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
 
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
 
Back
Top