zeroconf is a cross-platform library that wraps underlying ZeroConf/mDNS implementations such as Bonjour or Avahi, providing an easy and idiomatic way to both register and browse services.
MIT License
77
stars
25
forks
source link
Win11 vEthernet (WSL) IP causing two instances and -2.local name. #66
I have a single MdnsService::new(service_type, port) that is being seen in the examples\browser and in dns-sd -B as two instances with the same name and the hostname is -2.local. The IP address is that of my wifi adapter and the other is the Ethernet adapter vEthernet (WSL (Hyper-V firewall)).
wsl -l --running
There are no running distributions.
The other day I was using the library and it was resolving to hostname.local correctly and did not advertise as two instances with the same name. I'm not sure what happened but the -2.local resolves fine from the local machine but does not resolve from the other machines. Apologies if this is more a Bonjour for windows specific question. WSL does not out of the box mdns/zeroconf without configuration and I've done none of that.
I have a single MdnsService::new(service_type, port) that is being seen in the examples\browser and in dns-sd -B as two instances with the same name and the hostname is -2.local. The IP address is that of my wifi adapter and the other is the Ethernet adapter vEthernet (WSL (Hyper-V firewall)).
The other day I was using the library and it was resolving to hostname.local correctly and did not advertise as two instances with the same name. I'm not sure what happened but the -2.local resolves fine from the local machine but does not resolve from the other machines. Apologies if this is more a Bonjour for windows specific question. WSL does not out of the box mdns/zeroconf without configuration and I've done none of that.