mdns-reflector is finally fully working

Don’t bother using avahi-daemon for mdns reflecting, you might need it on every device.

Also you need “allow-point-to-point=yes” in avahi on the other device that’s connecting using WireGuard.

And it looks like I need to do one more thing. I did it manually, but might need it in the wg0.conf file. But I also added a route, which might not even be needed. “ip link set wg0 multicast on”, that’s what I need in my wg0.conf. Not deleting the route though, don’t want to add it back.

Plenty of info here.

So I guess the reflector in avahi doesn’t reflect everything on a network to another network? Just local stuff?

Well mdns-reflector works.

How to get avahi-browse working on Android in Termux? Well, you need root. You might need to disable the mdnsd in /system/bin, I just chmod it. Not sure I even needed to though. You can find info on the Termux Github issues, on what you need to do in the avahi-daemon.conf file, but basically enable dbus. And edit some files so avahi and dbus use your non root username, you can get it with whoami.

And to auto start it, you just need to use the Termux boot app thing. Don’t bother with termux-services, it doesn’t work, if you need sudo. And setting up a runit for root may or may not be possible.

Easier to just make a very small script to run dbus-daemon –system and sudo avahi-daemon -D, and the wake command for Termux before that.

But any apps in the other profile, might not work with it, need to wake up the Atari VCS and see if it can find it. If not maybe, the other mdnsd will work. But I got to shit first. Needed avahi-browse, so I can see if it’s even working at all.

Update

And you have to enable multicast on the VPN connection. I’m using WireGuard in kernel mode. And you probably need root to do so. I used the ip command to do it.