Why Android emulators are numbered like 5554

邮差的信 提交于 2019-12-30 09:08:12

问题


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


回答1:


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.




回答2:


It's the port they are listening on.



来源:https://stackoverflow.com/questions/7308929/why-android-emulators-are-numbered-like-5554

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!