Skip to content

Instantly share code, notes, and snippets.

@gongo
Created January 17, 2013 08:58
Show Gist options
  • Save gongo/4554676 to your computer and use it in GitHub Desktop.
Save gongo/4554676 to your computer and use it in GitHub Desktop.
browse "_airplay._tcp" service
(require 'zeroconf)
(zeroconf-init nil) ;; search at .local
(dolist (s (zeroconf-list-services "_airplay._tcp"))
(message (format "host:%s port:%s"
(zeroconf-service-address s)
(zeroconf-service-port s))))
;; => host:xxxx::xxxx:xxxx:xxxx:xxxx port:80
;; => host:xxx.xxx.xxx.xxx port:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment