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
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
Last edited by kotao_78; 07-17-2007 at 09:00 PM. Reason: Changing notification
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.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.