added find open host functionality to get_hosts.rb