How to test internet connection in VB.NET?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have an application that runs continously gives an error and stops working
if the internet goes down (which happens for about 5-10 minutes several times
a day. Can anybody tell me how to test for internet connectivity when this
happens and then pause processing until internet connectivity is back up?

Thanks.
 
I have an application that runs continously gives an error and stops working
if the internet goes down (which happens for about 5-10 minutes several times
a day. Can anybody tell me how to test for internet connectivity when this
happens and then pause processing until internet connectivity is back up?

Open a connection to a server garanteed to be up 24/7 such as
microsoft.com, apple.com or google.com. If the connection succeeds, your
Internet connection is up. If it fails, you might want to try out another
site first before declaring that the connection has been lost though.
 
I have an application that runs continously gives an error and stops
working
if the internet goes down (which happens for about 5-10 minutes several
times
a day. Can anybody tell me how to test for internet connectivity when this
happens and then pause processing until internet connectivity is back up?

Maybe shell 'ping' and see what happens?
 

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

Back
Top