Avahi



Avahi-Utils

 

# Install $ sudo apt install avahi-utils # Play $ avahi-browse _ros-master._tcp : list all ros master services $ avahi-browse -a : list all discovered services $ avahi-browse -a -r : list and resolve ips for all discovered services $ avahi-publish -s DudeMaster _ros-master._tcp 8889 : publish a service# The following command lists the most recent activity and monitors (-f, follow) it for incoming activity

Publish Workstation

In order to have your hostname appear on the avahi services, you need to configure the avahi-daemon to do so. Modify /etc/avahi/avahi-daemon.conf so that publish-workstation=yes

 

# Local Machine $ avahi-browse -a + veth3124e02 IPv6 90712-DStonier [5a:39:6a:ff:a1:89] Workstation local + veth0142ad1 IPv6 90712-DStonier [da:61:d3:ed:5f:b9] Workstation local + veth849b582 IPv6 90712-DStonier [2e:d1:16:4f:51:83] Workstation local + docker0 IPv6 90712-DStonier [02:42:6e:c9:99:4b] Workstation local + docker0 IPv4 90712-DStonier [02:42:6e:c9:99:4b] Workstation local + enp0s31f6 IPv6 90712-DStonier [b4:2e:99:a0:6c:36] Workstation local + enp0s31f6 IPv4 90712-DStonier [b4:2e:99:a0:6c:36] Workstation local + lo IPv4 90712-DStonier [00:00:00:00:00:00] Workstation local # Remote Machine $ avahi-browse -a + wlp110s0 IPv6 90712-DStonier [b4:2e:99:a0:6c:36] Workstation local + wlp110s0 IPv4 90712-DStonier [b4:2e:99:a0:6c:36] Workstation local

Graveyard

An old bug which discusses problems caused by misbehaving ISP’s with respect to local: https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/327362 .