Standard mDNS service on Windows

前端 未结 6 866
無奈伤痛
無奈伤痛 2021-02-02 10:31

Does Windows (some modern flavour) have an mDNS server installed and/or running by default? If so then how does one tell it, preferably dynamically, to start/stop advertising a

6条回答
  •  猫巷女王i
    2021-02-02 10:55

    The short answer is to support both Avahi and Bonjour. You'll need Bonjour support to run on OSX anyway, and if a Windows user has installed iTunes they'll already be running it.

    As a fallback for Windows users not running iTunes, you can compile Avahi as a library for Windows (with a bit of effort) and bundle it. This is a non-trivial bit of packaging, but the alternative is requiring your Windows users to install iTunes in order to use your application.

提交回复
热议问题