But I am not using dial-up connection. I have shared T1 line.
Main Topics
Browse All TopicsHow do I use VB to create a detection program that will
do the following :
- Detecting the internet connection every 5 mintues.
- If the connection is down, then log the time it
happens. When the connection is up, then also log
the time, and calculate how long the connection is
down.
How do I do that ? Any code ?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi
Take a look on my sample at http://www.freevbcode.com/
>>: This nice demo application demonstrates 3 ways to detect whether or not a current Internet connection is active -- by checking the registry, by using functions within the wininet.dll, and by pinging yahoo.com. Remarks explaning the advantages and disadvantages of each method are included within the application.<<
Choose the way you like.
Cheers
Ping has its own disadvantages. One of them is the url or
ip that you ping can be down, and it doesn't mean the
internet connection is down.
So, maybe I should have a array of 5 reliable ip or url.
If the ping failed from these 5, that I can conclude that
my inernet connection is 100 % down. What do you experts think ?
ping the ip address, not a URL. That way you're not at the mercy of your DNS. For instance,
ping 207.46.230.219
rather than
ping www.microsoft.com
==========================
Your five-site-ping idea has merit. You might be thrown off if there is a denial-of-service attack on your five sites.
Advice:
Get the code working with one site and put it into beta testing status. Get performance figures while it is checking just one site. Drop the connection/slow/confuse the connection and evaluate the actions/accuracy/performan
Then add additional sites (you might start with just one additional site) and retest your code.
Only testing will determine how many (if any) additional sites will result in reliable connection status detection without degrading performance.
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY. Moderators Computer101 or Netminder will return to finalize these if they are still open in 14 days. Experts, please post closing recommendations before that time.
Below are your open questions as of today. Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response. This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database. If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
--> Post comments for expert of your intention to delete and why
--> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.
For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
http://www.experts-exchang
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process. http://www.experts-exchang
Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.
Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added. When you grade the question less than an A, please comment as to why. This helps all involved, as well as others who may access this item in the future. PLEASE DO NOT AWARD POINTS TO ME.
To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchang
http://www.experts-exchang
http://www.experts-exchang
http://www.experts-exchang
http://www.experts-exchang
http://www.experts-exchang
***** E X P E R T S P L E A S E ****** Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link
http://www.experts-exchang
POINTS FOR EXPERTS awaiting comments are listed in the link below
http://www.experts-exchang
Moderators will finalize this question if in @14 days Asker has not responded. This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
Thanks everyone.
Moondancer
Moderator @ Experts Exchange
Business Accounts
Answer for Membership
by: joekendallPosted on 2001-11-24 at 15:18:20ID: 6650611
Here is a good article with code to explain how to detect an active connection: http://www.mvps.org/vbnet/ index.html ?code/reg/ activeconn ect.htm
Thanks!
Joe