Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-17-2007, 10:02 PM   #1
LQ Newbie
Registered: Sep 2006
Posts: 19

Rep: Reputation: 0
Question 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
Old 07-17-2007, 10:18 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
You could use the host command. "host". Or you could simply try to browse the web with a browser.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network was Reachable, But ..... _ AsiF Linux - Networking 1 06-25-2007 11:06 PM
suse 10.1 Didnt detect cable internet what do I do? CrYpTiC-N1Nj4 SUSE / openSUSE 2 11-20-2005 09:26 PM
My internet apps cannot detect my internet connection esthon_wood Mandriva 5 08-30-2004 08:38 PM
how to auto detect when connected to internet? rohan208 Programming 2 07-24-2004 04:00 PM
Mandrake 8.1 Internet Auto-detect kleinella Linux - Newbie 1 12-30-2001 11:07 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration