Skip to content

Instantly share code, notes, and snippets.

@arietis
Last active August 29, 2015 14:17
Show Gist options
  • Save arietis/77077b5cece44f7271ce to your computer and use it in GitHub Desktop.
Save arietis/77077b5cece44f7271ce to your computer and use it in GitHub Desktop.
puts 'Looking for services'
DNSSD.browse '_http._tcp.' do |reply|
puts reply.name
DNSSD.resolve reply do |result|
puts "http://#{result.target}:#{result.port}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment