Testing Local Connection / Internet Connection

  • Thread starter Thread starter Bsmengen
  • Start date Start date
B

Bsmengen

I am trying to make sure that the local connection is up. I have presently
been using the NetworkChange.NetworkAvailabilityChanged Event for this. Is
there a better way to do this?

Also, I want to test to see if the Internet Connection is up. I need the
Internet to be up for the Web Services I am calling. Is it better to test
the Internet Connection through Pinging an IP Address (I presently do 3 ping
failures for it to be down) or some other way? Is there any eventhandler out
there for checking the internet connection?

Thanks
 
Peter,

Thanks so much for the prompt response.

However, I am running a standalone application where there is no user around
to deal with it. I have to deal with it. I am also dealing with FTP issues
and need both the local connection and internet connection up. Could you
please explain to me how to best do that in your opinion?

Thanks again,
Bob
 
Peter,

Thanks so much for the prompt response.  

However, I am running a standalone application where there is no user around
to deal with it.  I have to deal with it.  I am also dealing with FTP issues
and need both the local connection and internet connection up.  Could you
please explain to me how to best do that in your opinion?

Thanks again,
Bob











- Show quoted text -

Hi,

It's as simple as trying to conenct to the ftp server, if you can
connect there is connectivity TO THE SERVER, that is what you care
about in reality.
Cause, what would you call it if there is connectivity to the rest of
the internet but to your server?
 
I am trying to make sure that the local connection is up.  I have presently
been using the NetworkChange.NetworkAvailabilityChanged Event for this.  Is
there a better way to do this?

Also, I want to test to see if the Internet Connection is up.  I need the
Internet to be up for the Web Services I am calling.  Is it better to test
the Internet Connection through Pinging an IP Address (I presently do 3 ping
failures for it to be down) or some other way?  Is there any eventhandler out
there for checking the internet connection?

Thanks

Hi,

And what happens if the server is up (you get ping) but the web
service is down?
 
Thanks so much for your help.
--
Bob


Ignacio Machin ( .NET/ C# MVP ) said:
Hi,

And what happens if the server is up (you get ping) but the web
service is down?
 

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