Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Internet Quest  RSS feed

 
Ranganath Ranganaths
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I just wanted to know how to verify if the system is online or not ie if the system is connected to internet or not..

I am tryin to user socket programmin to dovelop a application similiar to outlook..

please help me thankin you
Ranganth.s
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use getByName (yourISP_DNS_IP):

Of course you Internetconnection might be up, but the ISP-DNS1-Server might be down - so you could first test for the usual second DNS before returning false.

It showed 145.253.2.11 = dns1.arcor-ip.de for my test-request.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!