-
-
Save arietis/77077b5cece44f7271ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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