Network Ruby

require 'ping'
puts "Pong!" if Ping.pingecho('localhost', 5)