How to Running two or more Android Emulator in a PC

Hello All,

I want to Running two or more automation in appium with same application.
But in this case when i start open two port in appium and also open two devices with Same Configuration.
then one is working good and when i start second device its effect on first device and not working good.

(1). I used devicename parameter as desirecapabilites but it is ignore devicename parameter for unique.
(2) i also used udid as desirecapabilites but still same error.
can have any solution that, how to differentiate both device.



Its Working Good now.