Usage and purpose of Android.local

I recently watched the Android-Things SDK and I installed it on my Raspberry Pi device.

To connect with Raspberry Pi with ADB, I used:

 adb connect <ip address>:5555 

But then I found something like this:

 adb connect Android.local 

Link

Looking through a lot of things on Google, I did not find anything related to Android.local . Are there any documents about this or not?

+5
source share
2 answers

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 
+6
source

Raspberry Pi translates the Android.local hostname through multicast DNS. So, if your computer supports MDNS, you can configure this link .

And this is a document for mDNS

+2
source

Source: https://habr.com/ru/post/1262403/


All Articles