Hi,
I want to determine if a computer is connected to the Internet and thus be able to notify user about it. I tried the ping method and it works but there's one problem, my program becomes dependent on that website for e.g. when I tested my program for pinging www.google.com it showed me reponses but later on they showed "time out" errors may be because the servers can easily choose to ignore sending a response to ping call.
How do I get around this problem, and find out for sure whether the computer is connected to the Internet or not. I think the program must not be so vulnerable to be dependent on one server.
Any ideas?
I want to determine if a computer is connected to the Internet and thus be able to notify user about it. I tried the ping method and it works but there's one problem, my program becomes dependent on that website for e.g. when I tested my program for pinging www.google.com it showed me reponses but later on they showed "time out" errors may be because the servers can easily choose to ignore sending a response to ping call.
How do I get around this problem, and find out for sure whether the computer is connected to the Internet or not. I think the program must not be so vulnerable to be dependent on one server.
Any ideas?