Warning regarding avahi: it will drain your battery.
Background: avahi and other zeroconf work by broadcasting packet. On a busy Wifi with lots of device on the network, your phone’s avahi will spend ton of time constantly answering such broadcast.
On the plus side: the network is perfectly aware of the current device name of your and its IP and vis-versa you phone is aware of every single machine. Yay!
On the bad side: your smartphone will never go to sleep as it needs to constantly process all this traffic over wifi.
While this is perfectly fine for larger devices like laptops, it might become a bit too much stress on your poor smartphone if the network is very busy (have fun trying to run it at a University).
A possible workaround solution is to use something like, e.g., Situations, to disable the daemon under some circumstance (e.g.: if the Wifi SSID is the one from you workplace busy network, and the phone is not plugged into a charger and the screen is off, disable the avahi daemon).