Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Android emulators are numbered like 5554

This might be a totally out of box question. I'm just wondering why Android emulators are numbered as 5554, 5556 like that.

like image 312
Sachchidanand Avatar asked Sep 05 '11 13:09

Sachchidanand


1 Answers

The Android emulators communicate with the Android SDK tools using the network, even though this communication is limited to localhost. This allows installing apps, debugging, etc. When you start your emulator, it listens to the ports 5554 and 5555 for that purpose.

If you start your emulator while another one is already running, these ports are busy, so the emulator will listen to 5556 and 5557 instead, and so on. The first port number is displayed in the title bar of the emulator so you can see on which port it is based.

This is very convenient when you have several emulators running at the same time, to emulate different versions of Android or different vendors, as an example.

like image 99
Shlublu Avatar answered Sep 21 '22 00:09

Shlublu