Using .local domains supported by mDNS or Avahi from devices in the same network as my device works flawlessly on macOS, Ubuntu and iOS.
I use it to make http(s) or SSH connection to a device inside the network.
But using a domain like e.g. macbook.local from Android does not work, while it does work from iOS or Ubuntu in the same network.
I have Termux which allows installing Avahi daemon which does allow approaching my Android device from the other devices by androidphone.local (name set in $PREFIX/etc/avahi/avahi-daemon.conf
within Termux). But the other way around still does not work, even from within the Termux environment. I use Android 10 and on the other devices macOS 13, iOS 16 and Ubuntu 22.04.
What am I doing wrong ?