473,378 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Testing Internet connectin programatically

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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #1
2 1347
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

"PeterH" wrote:
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 21 '05 #2
Yes, thanks. That works.

Peter

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

56
by: Don G | last post by:
I currently have IE6 and Firefox installed on my machine, and I switch between the two when testing web sites I am working on. It is my understanding that IE5 is still pretty common. Is this...
8
by: Jozef | last post by:
Hello, Is there a way to test that an internet connection exists and that you are able to see the webserver before performing any connections? The reason being, when I try to connect to an SQL...
1
by: Edu | last post by:
Hi, If you use Norton Internet Security, you might be having the same problem I'm having when developing on Visual Studio .net. Before, when using vb6, I had only once to set a rule on the...
0
by: jason | last post by:
I googled a lot, couldn't find a good solution. Any help is greatly appreciated. What I want to do is: Given a web page in a running IE browser , i want to save an image in this web page to...
4
by: Rick | last post by:
>From a C# windows app, how can I easily tell if I have a connection to the internet. Thanks, Rick
0
by: Raja | last post by:
Hi All, I want to enable script debugging option of ie programatically in asp.net. Here is my code: RegistryKey regKey =Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Internet...
1
by: Raja | last post by:
Hi All, I would like to set internet explorer options programatically i.e suppose if i want to enable script debugging open IE->Tools-->Advanced Options--->uncheck disable script debugging. ...
6
by: praveen | last post by:
Hi, I am writing c code for ATMEL 8051 core in ANSI c. we are using KEIL compiler for it. I want to test my c code and improve my programming skills. Can any one suggest the software tool that...
11
by: Alexnb | last post by:
Hello internet. I am wondering, is there a simple way to test for Internet connection? If not, what is the hard way :p -- View this message in context:...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.