LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Detect internet reachable (https://www.linuxquestions.org/questions/programming-9/detect-internet-reachable-570273/)

kotao_78 07-17-2007 10:02 PM

Detect internet reachable
 
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

jschiwal 07-17-2007 10:18 PM

You could use the host command. "host www.google.com". Or you could simply try to browse the web with a browser.


All times are GMT -5. The time now is 07:14 AM.