# ECONREFUSED/ECONNRESET Problem

**URL:** <https://discuss.appium.io/t/econrefused-econnreset-problem/45977>\
**Category:** Support\
**Created:** [August 24, 2025, 6:21pm UTC](https://discuss.appium.io/t/econrefused-econnreset-problem/45977 "2025-08-24T18:21:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrEconnreset](https://discuss.appium.io/user_avatar/discuss.appium.io/mreconnreset/32/14301_2.png) [@MrEconnreset](https://discuss.appium.io/u/MrEconnreset)\
**Post date:** [August 24, 2025, 6:21pm UTC](https://discuss.appium.io/t/econrefused-econnreset-problem/45977/1 "2025-08-24T18:21:21Z")

</div>

Hello guys, I have a huge problem. I have 5 phones connected on my Mac M1 with 16GB RAM through and USB HUB with is also powered to electricity and it connects the hub with an iphone 15 pro max type c cable to hub.. They all are supposed to run great but the problem is they randomly have ECONRESET ISSUES. What could be the reason for that?

Error is: An unknown server-side error ocurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED: 127.0.0.1:8103

[6a5b26f0][XCUITestDriver@5047] Matched ‘/actions’ to command name ‘performActions’  
[6a5b26f0][XCUITestDriver@5047] Proxying [POST /actions] to [POST [http://127.0.0.1:8104/session/7FC628D7-FAF2-4BF7-9DF9-4843BA195EDC/actions\](http://127.0.0.1:8104/session/7FC628D7-FAF2-4BF7-9DF9-4843BA195EDC/actions%5C)] with body: {“actions”:[{“type”:“pointer”,“parameters”:{“pointerType”:“touch”},“id”:“touch”,“actions”:[{“type”:“pointerMove”,“duration”:250,“x”:182,“y”:545,“origin”:“viewport”},{“type”:“pointerDown”,“duration”:0,“button”:0},{“type”:“pause”,“duration”:100},{“type”:“pointerMove”,“duration”:250,“x”:179,“y”:297,“origin”:“viewport”},{“type”:“pointerUp”,“duration”:0,“button”:0}]}]}  
[6a5b26f0][XCUITestDriver@5047] connect ECONNREFUSED 127.0.0.1:8104  
[6a5b26f0][XCUITestDriver@5047] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8104  
at JWProxy.command (/Users/willlost/.appium/node\_modules/appium-xcuitest-driver/node\_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.js:359:13)  
at processTicksAndRejections (node:internal/process/task\_queues:95:5)  
at XCUITestDriver.proxyCommand (/Users/willlost/.appium/node\_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:100:35)  
at XCUITestDriver.performActions (/Users/willlost/.appium/node\_modules/appium-xcuitest-driver/lib/commands/gesture.js:129:5)  
[6a5b26f0][HTTP] ← POST /session/6a5b26f0-b0f3-4a79-9bb7-1d50f03f338e/actions 500 8 ms - 931  
[6a5b26f0][HTTP] → POST /session/6a5b26f0-b0f3-4a79-9bb7-1d50f03f338e/actions {“actions”:[{“type”:“pointer”,“parameters”:{“pointerType”:“touch”},“id”:“touch”,“actions”:[{“type”:“pointerMove”,“duration”:250,“x”:182,“y”:545,“origin”:“viewport”},{“type”:“pointerDown”,“duration”:0,“button”:0},{“type”:“pause”,“duration”:100},{“type”:“pointerMove”,“duration”:250,“x”:179,“y”:297,“origin”:“viewport”},{“type”:“pointerUp”,“duration”:0,“button”:0}]}]}  
[6a5b26f0][XCUITestDriver@5047] Calling AppiumDriver.performActions() with args: [[{“type”:“pointer”,“parameters”:{“pointerType”:“touch”},“id”:“touch”,“actions”:[{“type”:“pointerMove”,“duration”:250,“x”:182,“y”:545,“origin”:“viewport”},{“type”:“pointerDown”,“duration”:0,“button”:0},{“type”:“pause”,“duration”:100},{“type”:“pointerMove”,“duration”:250,“x”:179,“y”:297,“origin”:“viewport”},{“type”:“pointerUp”,“duration”:0,“button”:0}]}],“6a5b26f0-b0f3-4a79-9bb7-1d50f03f338e”]  
[6a5b26f0][XCUITestDriver@5047] Executing command ‘performActions’  
[6a5b26f0][XCUITestDriver@5047] Received the following W3C actions: [  
{  
“type”: “pointer”,  
“parameters”: {  
“pointerType”: “touch”  
},  
“id”: “touch”,  
“actions”: [  
{  
“type”: “pointerMove”,  
“duration”: 250,  
“x”: 182,  
“y”: 545,  
“origin”: “viewport”  
},  
{  
“type”: “pointerDown”,  
“duration”: 0,  
“button”: 0  
},  
{  
“type”: “pause”,  
“duration”: 100  
},  
{  
“type”: “pointerMove”,  
“duration”: 250,  
“x”: 179,  
“y”: 297,  
“origin”: “viewport”  
},  
{  
“type”: “pointerUp”,  
“duration”: 0,  
“button”: 0  
}  
]  
}  
]  
[6a5b26f0][XCUITestDriver@5047] Preprocessed actions: [  
{  
“type”: “pointer”,  
“parameters”: {  
“pointerType”: “touch”  
},  
“id”: “touch”,  
“actions”: [  
{  
“type”: “pointerMove”,  
“duration”: 250,  
“x”: 182,  
“y”: 545,  
“origin”: “viewport”  
},  
{  
“type”: “pointerDown”,  
“duration”: 0,  
“button”: 0  
},  
{  
“type”: “pause”,  
“duration”: 100  
},  
{  
“type”: “pointerMove”,  
“duration”: 250,  
“x”: 179,  
“y”: 297,  
“origin”: “viewport”  
},  
{  
“type”: “pointerUp”,  
“duration”: 0,  
“button”: 0  
}  
]  
}  
]  
[6a5b26f0][XCUITestDriver@5047] Matched ‘/actions’ to command name ‘performActions’

[6a5b26f0][XCUITestDriver@5047] Proxying [POST /actions] to [POST [http://127.0.0.1:8104/session/7FC628D7-FAF2-4BF7-9DF9-4843BA195EDC/actions\](http://127.0.0.1:8104/session/7FC628D7-FAF2-4BF7-9DF9-4843BA195EDC/actions%5C)] with body: {“actions”:[{“type”:“pointer”,“parameters”:{“pointerType”:“touch”},“id”:“touch”,“actions”:[{“type”:“pointerMove”,“duration”:250,“x”:182,“y”:545,“origin”:“viewport”},{“type”:“pointerDown”,“duration”:0,“button”:0},{“type”:“pause”,“duration”:100},{“type”:“pointerMove”,“duration”:250,“x”:179,“y”:297,“origin”:“viewport”},{“type”:“pointerUp”,“duration”:0,“button”:0}]}]}  
[6a5b26f0][XCUITestDriver@5047] connect ECONNREFUSED 127.0.0.1:8104  
[6a5b26f0][XCUITestDriver@5047] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8104  
at JWProxy.command (/Users/willlost/.appium/node\_modules/appium-xcuitest-driver/node\_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.js:359:13)  
at processTicksAndRejections (node:internal/process/task\_queues:95:5)  
at XCUITestDriver.proxyCommand (/Users/willlost/.appium/node\_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:100:35)  
at XCUITestDriver.performActions (/Users/willlost/.appium/node\_modules/appium-xcuitest-driver/lib/commands/gesture.js:129:5)  
[6a5b26f0][HTTP] ← POST /session/6a5b26f0-b0f3-4a79-9bb7-1d50f03f338e/actions 500 6 ms - 931.

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [August 24, 2025, 7:25pm UTC](https://discuss.appium.io/t/econrefused-econnreset-problem/45977/2 "2025-08-24T19:25:50Z")

</div>

I saw this happening to various cheap USB hubs, especially if one connects to many devices to them, so each device does not get enough power.

Consider the following requirements to a USB hub if you plan to use it on a regular basis to run automation on connected devices:

- High quality components (industrial USB hubs preferable). Don’t save money one them
- Prefer USB hubs with cooling. Consider putting them into a properly cooled server room otherwise (or maybe both). Overheating might be the source of many problems
- Consider USB hubs with a separate power source. If the hub contains multiple ports make sure each connected device receives enough power
- Consider USB3+ hubs. USB2 may be too slow to be used to transfer big data chunks and allow to deliver more power to connected devices. At the same time make sure connected devices support USB3 (many devices don’t, even recent iPhone models). Nevertheless, USB2 devices could still be connected to a USB3 hub.
- Use high-quality USB cables with proper protection from radio interference and enough power/data throughput

---

<div class="post-metadata">

**Author:** ![MrEconnreset](https://discuss.appium.io/user_avatar/discuss.appium.io/mreconnreset/32/14301_2.png) [@MrEconnreset](https://discuss.appium.io/u/MrEconnreset)\
**Post date:** [August 24, 2025, 8:13pm UTC](https://discuss.appium.io/t/econrefused-econnreset-problem/45977/3 "2025-08-24T20:13:43Z")

</div>

I have this. I hope im allowed to post links:

> **[Hub Multiport 7 x USB 3.0 UGREEN 90307 CM481, Alimentare Activa 12V, Priza...](https://www.emag.ro/hub-multiport-7-x-usb-3-0-ugreen-90307-cm481-alimentare-activa-12v-priza-eu-aluminiu-space-gray-6957303893072/pd/D8QQLLMBM/?X-Search-Id=4642313d8b58e0f54ba0&X-Product-Id=262711552&X-Search-Page=9&X-Search-Position=7&X-Section=search&X-MB=0&X-Search-Action=view)**
>
> Cumpara Hub Multiport 7 x USB 3.0 UGREEN 90307 CM481, Alimentare Activa 12V, Priza Eu, Aluminiu, Space Gray de la eMAG! Ai libertatea sa platesti in rate, beneficiezi de promotiile zilei, deschiderea coletului la livrare, easybox, retur gratuit in 30...

So there can’t be any issue different than the setup?

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [August 24, 2025, 8:35pm UTC](https://discuss.appium.io/t/econrefused-econnreset-problem/45977/4 "2025-08-24T20:35:43Z")

</div>

I use below for 2+ years with macMini m1 and m2. Have very few issues.

> **[MARKIT – inline - hub - 7 x usb 3.2 gen 1](https://www.markit.eu/ee/en/inline-hub-7-x-usb-3-2-gen/v2p28621591c160204#)**
>
> Jaoturid / Lülitid – INTOS ELECTRONIC – 35395I – InLine - Hub - 7 x USB 3.2 Gen 1 - desktop

Ps just for sure add example of capabilities you use with phones and how you start appium servers.

---

<div class="post-metadata">

**Author:** ![MrEconnreset](https://discuss.appium.io/user_avatar/discuss.appium.io/mreconnreset/32/14301_2.png) [@MrEconnreset](https://discuss.appium.io/u/MrEconnreset)\
**Post date:** [August 24, 2025, 9:10pm UTC](https://discuss.appium.io/t/econrefused-econnreset-problem/45977/5 "2025-08-24T21:10:41Z")

</div>

I start appium servers in terminal in different ports:

phone 1 wda port 8100 appium port 4723  
phone 2 wda port 8101 appium port 4724  
phone 3 wda port 8102 appium port 4725  
phone 4 wda port 8103 appium port 4726  
phone 5 wda port 8104 appium port 4727

3 phones work correctly, when I start inputting the 4th one and the 5th one they start having randomly errors.

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [August 25, 2025, 8:10am UTC](https://discuss.appium.io/t/econrefused-econnreset-problem/45977/6 "2025-08-25T08:10:33Z")

</div>

I use similar logic. Just appium ports from 6001, wda from 6101. Have also video port but this is other story.
