You are here: Home » Reply

Reply To: Multiple mt-daapd / avahi daemons running in virtual servers



@eschoeller wrote:

I am attempting to fire up mt-daapd / avahi within multiple virtual servers on the same physical machine. Should work right? Well, not quite, despite my best wishes.

I honestly figured that I would have no problem with this whatsoever, but that never seems to be the case.

debian etch
mt-daapd 0.2.4+r1376-1
avahi-daemon 0.6.16-3etch1
no firewall (all policies set to ACCEPT)

Each mt-daapd instance works just fine on it’s own. However, when the second one fires up, it knocks the first one off itunes. Both virtual servers have different IP addresses but are on the same subnet. In netstat, it is clear that each mt-daapd/avahi daemon on the virtual servers are binding to their own 192.168.0.x address, and on the host O/S nothing is bound to either of these ports. In my mind, this should be no different than firing up two mt-daapd/avahi’s on two physically different machines on the same network … but obviously something else is at work here.

This seems to come down to an mDNS problem … which I absolutely loathe – mainly because I have such a limited understanding of it.

This may be the wrong place to ask for help, as it may be the fault of my virutalized enviornment, but I needed a place to start.


Easiest thing to do is to not rely on auto-registration with avahi. Just manually configure avahi with the ip and ports and whatnot, and run mt-daapd with the “-m” config option. Then avahi will be in charge of advertising, and then they won’t be stepping on each other.

— Ron