Can I use Bonjour from command line?

前端 未结 3 1793
野趣味
野趣味 2020-12-28 18:54

Is it possible to use Bonjour from command line? For example if I want to register a service I type something like that: bonjour -register service_name port. And then Bonjou

3条回答
  •  伪装坚强ぢ
    2020-12-28 19:34

    dns-sd is the command line program that works on both windows and Mac OS X.

    I often use it to tunnel iTunes shares over the internet with ssh. My typical use is dns-sd -P my_music _daap._tcp. local 3690 localhost 127.0.0.1. This assumes that I've set up an ssh tunnel listen on localhost port 3690 to port 3689 of the host sharing iTunes on the foreign network. This makes a little iTunes share icon appear in iTunes named "my_music".

提交回复
热议问题