Recently I was looking at the Android-Things
SDK, and I have installed it on my Raspberry Pi device.
To connect Raspberry Pi with ADB I have used:
adb connect <ip address>:5555
But then I have found something like this:
adb connect Android.local
Reference
By searching lot of things on Google I have not found anything related to Android.local. Is there any documentation about this or not?
Also on operating systems like Windows that doesn't support mDNS out of the box you can install the Bonjour Service developed by Apple. The Bonjour Service provides a new command line tool for mDNS requests called dns-sd. Execute the following command to search for your Android Things device:
dns-sd -Q Android.local
The tool doesn't terminate and will continuously print out all devices with the passed FQDN. I connected my Raspberry Pi over Ethernet and WiFi. Because of that I get two addresses:
Timestamp A/R Flags if Name T C 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 changes will be tracked like a link down of my WiFi connection:
22:19:52.940 Rmv 0 13 Android.local. 1 1 192.168.x.124
Raspberry Pi broadcasts the hostname Android.local over Multicast DNS. So, if your PC supports MDNS, you can config like this link.
And this is document for mDNS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With