From: Josef 'Jupp' Schugt Date: 2004-12-30T08:00:24+09:00 Subject: Re: verifying a network connection Premshree Pillai wrote: > require 'net/http' > begin > resp = Net::HTTP.get_response(URI.parse("http://some.url")) > # do stuff > rescue > print "No Network connection" > end Your solution *may* solve the problem that Thomas has but it does not fit the one he actually described. According to what he wrote, Thomas wants to check that the given Win2k system is connected to a network. Being connected to a network does not require that one is connected to the Internet. It also does not require that a given URL can be resolved, that a given webserver is reachable, or that a given URL can be fetched. It only means physical access to the network. To be precise even the assumption that TCP (IP) is used needs further justification - in the given case by mentioning that Win2k is used and not mentioning IPX, NetBIOS, or other alternative protocols that can be used for networking. Josef 'Jupp' Schugt -- Where on the ringworld does that 'Lord of the Rings' guy live?