How to specify the port number on the emulator?

I want to run two emulators simultaneously: one on port 5554 and one on 5556. The first is already installed; but how to configure the second of them on 5556 (in Elipse)?

+5
source share
3 answers

Change directory to android-sdk / tools

Run the following command

./emulator -port 5556 -avd AVD2_1_HVGA

AVD2_1_HVGA is my AVD name in Eclipse. You can see your AVD name by choosing Window> AVD Manager.

+8
source

Just put it -port 5556on the command line that launches the second emulator. You should be able to customize the command line in the Launch Settings panel.

+3
source

It seems that if I launched another AVD (NOT another Android application directly from Eclipse, which naturally calls AVD), and THEN starts the second application from Eclipse and selects the just called AVD to start it, it will automatically use 5556 (from earlier running Android application using 5554). So: the problem is solved; it seems that there is no need to go to the command line, it is just a matter of things in a certain order.

+1
source

All Articles