Home All Groups Group Topic Archive Search About

Internet connection present?

Author
20 Jul 2006 10:02 AM
ultradiv
I have a partly produced VB.NET app that needs to 'know' when the client
machine has an interent connection so that it can connect to a remote
webservice.
Any ideas?

Thanks
Andy

Author
20 Jul 2006 10:14 AM
Cor Ligthert [MVP]
Ultradiv,

Yes set it in a try and catch block if it does not connect than there is no
connection to that webservice.

Cor

Show quoteHide quote
"ultradiv" <a***@vpwd.net> schreef in bericht
news:eawaKQ%23qGHA.516@TK2MSFTNGP05.phx.gbl...
>I have a partly produced VB.NET app that needs to 'know' when the client
> machine has an interent connection so that it can connect to a remote
> webservice.
> Any ideas?
>
> Thanks
> Andy
>
>
Author
20 Jul 2006 10:32 AM
ultradiv
Thanks Cor.
I'll do that
Andy

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:u$CqMU%23qGHA.4408@TK2MSFTNGP04.phx.gbl...
> Ultradiv,
>
> Yes set it in a try and catch block if it does not connect than there is
no
> connection to that webservice.
>
> Cor
>
> "ultradiv" <a***@vpwd.net> schreef in bericht
> news:eawaKQ%23qGHA.516@TK2MSFTNGP05.phx.gbl...
> >I have a partly produced VB.NET app that needs to 'know' when the client
> > machine has an interent connection so that it can connect to a remote
> > webservice.
> > Any ideas?
> >
> > Thanks
> > Andy
> >
> >
>
>
Author
20 Jul 2006 2:29 PM
Larry Lard
ultradiv wrote:
> I have a partly produced VB.NET app that needs to 'know' when the client
> machine has an interent connection so that it can connect to a remote
> webservice.
> Any ideas?

In VB2005 you can use My.Computer.Network.IsAvailable, but as the docs
say that only tells you if "a computer is connected to *a* network". In
the long run, with proxies and network topologies and firewalls and so
on, the only sure way to tell if you can connect to a remote webservice
is to Try is and see. I mean, Try it and Catch.


--
Larry Lard
larryl***@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version