Hi all.

What's the best way to detect if the machine running my app is connected to
the Net? I don't need any network/dns info, just "connected? true/false".
Thanks!!

Re: Internet connection detection by Clamps

Clamps
Thu Sep 15 13:35:01 CDT 2005

Dim x As HttpWebRequest

Dim y As HttpWebResponse

x = x.Create(http://www.google.com)

y = x.GetResponse()

If y.StatusCode = HttpStatusCode.OK Then

Connected = True

End if




"Kikoz" <Kikoz@discussions.microsoft.com> wrote in message
news:5AEE5849-7A33-4D9C-90A0-4FA36E8958DD@microsoft.com...
> Hi all.
>
> What's the best way to detect if the machine running my app is connected
to
> the Net? I don't need any network/dns info, just "connected? true/false".
> Thanks!!



Re: Internet connection detection by Herfried

Herfried
Thu Sep 15 15:09:03 CDT 2005

"Kikoz" <Kikoz@discussions.microsoft.com> schrieb:
> What's the best way to detect if the machine running my app is connected
> to
> the Net? I don't need any network/dns info, just "connected? true/false".

In the upcoming VB 2005 you can use 'My.Computer.Network.IsAvailable'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Re: Internet connection detection by Vlad

Vlad
Thu Sep 15 18:44:52 CDT 2005

Thanks!


"Kikoz" <Kikoz@discussions.microsoft.com> wrote in message
news:5AEE5849-7A33-4D9C-90A0-4FA36E8958DD@microsoft.com...
> Hi all.
>
> What's the best way to detect if the machine running my app is connected
> to
> the Net? I don't need any network/dns info, just "connected? true/false".
> Thanks!!