Failed to run automation script getting error ECONNRESET at errnoException

I am connecting two devices using two diffrent ports and i m getting this exception in appium logs
somebody please help

I am working on android automation

FYI

I’m also getting this if I start two android devices on different servers with different ports.

But if I give like 10 seconds before launching the second device then no problem occurs.