posicks / mdnsjava

Multicast DNS (mDNS) [RFC 6762] & DNS-Based Service Discovery (DNS-SD) [RFC6763] in Java

Home Page:http://posicks.github.io/mdnsjava/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatically advertise on all ports

hakanai opened this issue · comments

With the macOS equivalent API, I don't have to pass a list of addresses for where the server is, but rather, it automatically advertises on all ports, without me having to specify. (And provides no means to specify it if I wanted to...)

Having a way to do this with mdnsjava would be nice, because I can't really be sure whether network interfaces will come and go throughout the lifetime of the service, and re-registering services when that happens is a bit of a hassle.