HI All,
Is there anybody have an idea of how to detect internet is reachable ?
At present , I'm using ping to detect internet is reachable , but it's maybe a bad idea , some firewall of router may block ping requesting.
Best Regards,
Ke Tao
Printable View
HI All,
Is there anybody have an idea of how to detect internet is reachable ?
At present , I'm using ping to detect internet is reachable , but it's maybe a bad idea , some firewall of router may block ping requesting.
Best Regards,
Ke Tao
Unless you actually try to connect to the server you want to connect to, using the associated port for the protocol you want to use (say www.google.com:80), then there is always the possibility that your "test" will fail because of some bizarre firewall rule, and the thing you really want to do will succeed.
Likewise, your test may pass, yet the actual server you want to talk to may be offline.
Querying your ISP's DNS server is probably one way to establish if you can get around in general.