Also on operating systems such as Windows that do not support mDNS, you can install Bonjour Service , developed by Apple. Bonjour provides a new command line tool for mDNS queries called dns-sd. Run the following command to search for an Android Things device:
dns-sd -Q Android.local
The tool does not shut down and will continuously print all devices with the transmitted FQDN. I connected my raspberry Pi via Ethernet and WiFi. Because of this, I get two addresses:
Timestamp A/R Flags if Name TC Rdata 22:18:47.771 Add 2 13 Android.local. 1 1 192.168.x.123 22:18:51.247 Add 2 13 Android.local. 1 1 192.168.x.124
Also, the changes will be tracked as a link down my WiFi connection:
22:19:52.940 Rmv 0 13 Android.local. 1 1 192.168.x.124
source share