Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how does adb find the emulator?

Tags:

android

adb

After starting an emulator instance, I can use adb to control it. But i don't need to specify the listening port of the emulator. My question is how does them connect together? Use default port? or something else.

like image 814
Dagang Avatar asked Jan 25 '26 18:01

Dagang


1 Answers

It scans the even numbered ports starting at a specific range and attempts to connect. The emulator takes control of a port each.

Basically as said on http://developer.android.com/guide/developing/tools/emulator.html In the network -port section it says

The console port number must be an even integer between 5554 and 5584, inclusive. +1 must also be free and will be reserved for ADB

like image 96
Kurru Avatar answered Jan 27 '26 06:01

Kurru



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!