开发者

Why Android emulators are numbered like 5554

开发者 https://www.devze.com 2023-04-02 07:09 出处:网络
This might be a totally out of box question. I\'m just wonde开发者_运维问答ring why Android emulators are numbered as 5554, 5556 like that.The Android emulators communicate with the Android SDK tools

This might be a totally out of box question. I'm just wonde开发者_运维问答ring why Android emulators are numbered as 5554, 5556 like that.


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.


It's the port they are listening on.

0

精彩评论

暂无评论...
验证码 换一张
取 消