From: Younes Baghor Date: 2010-09-17T07:17:04+09:00 Subject: Re: Net::PingExternal gives an errror thanks it works but its not correct i try them both: if Net::Ping::TCP.new('loocaalhost') puts 'OK' else puts 'NO respons' end if Net::Ping::External.new('loccalhost') puts 'OK' else puts 'NO respons' end this is the output: OK OK webwizartbe-iMac:balbaert younesbaghor$ 2 times ok even when the localhost is spelled wrong. someone know what the difference is between Net::Ping::TCP.new('localhost') Net::Ping::External.new('localhost') thanks allot -- Posted via http://www.ruby-forum.com/.