Hi !
I have several problem to detect if there are any active connections…
For example : Application.internetReachability return always notReachable…
What is the best solution ??
TIA
Kapik
Hi !
I have several problem to detect if there are any active connections…
For example : Application.internetReachability return always notReachable…
What is the best solution ??
TIA
Kapik
It isn’t a permanent solution, but something I’ve used in the past with C#:
using System.Net;
static bool IsInternetConnected()
{
try
{
Dns.GetHostEntry("www.google.com"); //Can be any website
return true;
}
catch
{
return false; //Host not reachable.
}
}
Any way to get this to work on the presence of a file at a specific URL instead of just the site being existant?
Yeah, use the WWW class to try and download the file and see what happens.