# ECONNRESET Error When Connecting to Appium 2.x Server

**URL:** <https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694>\
**Category:** Support\
**Created:** [April 11, 2025, 5:09am UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694 "2025-04-11T05:09:49Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcussucilea](https://discuss.appium.io/user_avatar/discuss.appium.io/marcussucilea/32/13950_2.png) [@marcussucilea](https://discuss.appium.io/u/marcussucilea)\
**Post date:** [April 11, 2025, 5:09am UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/1 "2025-04-11T05:09:49Z")

</div>

Hello Appium Team,

I work in test automation at a large tech company, and we’re currently migrating from Appium 1.x (which worked great for us) to Appium 2.x. However, we’re encountering a persistent issue.

We’ve completed the installation for Appium 2.x, but every time we try to connect to the server, we receive an `ECONNRESET` error.

Initially, we suspected it might be due to our company’s network security settings, so we tested it on a private network—but the same issue occurs. We’ve explored all available resources and documentation but haven’t been able to identify the root cause.

We’d appreciate your support or any guidance you can provide to help us resolve this.

Best regards,

Marcus

---

<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:** [April 11, 2025, 11:50am UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/2 "2025-04-11T11:50:00Z")

</div>

Possibly you did not updated appium server url? → [Migrating to Appium 2 - Appium Documentation](https://appium.io/docs/en/latest/guides/migrating-1-to-2/)

Unfortunately you did not provide more info or logs …

---

<div class="post-metadata">

**Author:** ![marcussucilea](https://discuss.appium.io/user_avatar/discuss.appium.io/marcussucilea/32/13950_2.png) [@marcussucilea](https://discuss.appium.io/u/marcussucilea)\
**Post date:** [April 11, 2025, 3:54pm UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/3 "2025-04-11T15:54:04Z")

</div>

![image](https://discuss.appium.io/uploads/default/original/2X/4/4441652a7c227e7be2e7cf70b661b88b109c008a.png)  
 ![image](https://discuss.appium.io/uploads/default/original/2X/c/c6f562dcc05508ef38e4ae07331cf74975643f28.jpeg)

There are no logs as connection doesnt go through.

---

<div class="post-metadata">

**Author:** ![marcussucilea](https://discuss.appium.io/user_avatar/discuss.appium.io/marcussucilea/32/13950_2.png) [@marcussucilea](https://discuss.appium.io/u/marcussucilea)\
**Post date:** [April 11, 2025, 3:54pm UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/4 "2025-04-11T15:54:34Z")

</div>

![image](https://discuss.appium.io/uploads/default/original/2X/6/612c94dc0bbee60097cc81566c83444467e60a27.png)  
 ![image](https://discuss.appium.io/uploads/default/original/2X/8/8ab078646daf0de8d57e5122ba0183577955c8d7.jpeg)  
This is the log file

---

<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:** [April 12, 2025, 6:38pm UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/5 "2025-04-12T18:38:27Z")

</div>

- is the server machine pingable from the client?
- is it possible to curl/telnet on the destination port from the client machine to the server one?

---

<div class="post-metadata">

**Author:** ![marcussucilea](https://discuss.appium.io/user_avatar/discuss.appium.io/marcussucilea/32/13950_2.png) [@marcussucilea](https://discuss.appium.io/u/marcussucilea)\
**Post date:** [April 13, 2025, 3:21am UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/6 "2025-04-13T03:21:21Z")

</div>

![image](https://discuss.appium.io/uploads/default/original/2X/a/a26f0cc978f86cc8a36e9b6cf5fa8bf7a72364ef.png)

I can ping but cannot telnet the port

---

<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:** [April 13, 2025, 6:49am UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/7 "2025-04-13T06:49:21Z")

</div>

Then there is most likely a firewall rule on either of these machines that prevents connections on the given port.

You may also try to telnet from the same machine where the server is running to verify if it is listening.

---

<div class="post-metadata">

**Author:** ![marcussucilea](https://discuss.appium.io/user_avatar/discuss.appium.io/marcussucilea/32/13950_2.png) [@marcussucilea](https://discuss.appium.io/u/marcussucilea)\
**Post date:** [April 14, 2025, 4:50am UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/8 "2025-04-14T04:50:50Z")

</div>

this is the log of telnet request on the same machine with localhost and the other public ip.

 ![image](https://discuss.appium.io/uploads/default/original/2X/8/82902f76b1ed1c0afff6cc210b98766eb5afae9d.jpeg)

---

<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:** [April 14, 2025, 7:09am UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/9 "2025-04-14T07:09:21Z")

</div>

This means the server works as expected and listens on localhost. There is something though, that prevents it from being accessible from other machines in the same network

---

<div class="post-metadata">

**Author:** ![marcussucilea](https://discuss.appium.io/user_avatar/discuss.appium.io/marcussucilea/32/13950_2.png) [@marcussucilea](https://discuss.appium.io/u/marcussucilea)\
**Post date:** [April 16, 2025, 7:24am UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/10 "2025-04-16T07:24:35Z")

</div>

So you say is not necessarily Appium related but network related? Same setup works with Appium1x but on Appium2x we get that error. I want to mention that I am using Macbook M4. Is there anything that ca be related to this?

---

<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:** [April 16, 2025, 7:41am UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/12 "2025-04-16T07:41:37Z")

</div>

Have machines - M1, M2 Pro, M2 - no issues.  
Only I do not use Appium GUI…

---

<div class="post-metadata">

**Author:** ![marcussucilea](https://discuss.appium.io/user_avatar/discuss.appium.io/marcussucilea/32/13950_2.png) [@marcussucilea](https://discuss.appium.io/u/marcussucilea)\
**Post date:** [April 16, 2025, 11:09am UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/13 "2025-04-16T11:09:28Z")

</div>

I dont use Appium GUI for 2x. There is no GUI. Or do you mean for connection (Appium Inspector?)

---

<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:** [April 16, 2025, 11:19am UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/14 "2025-04-16T11:19:54Z")

</div>

Inspector I mean. I use mostly page source printed in code.

---

<div class="post-metadata">

**Author:** ![marcussucilea](https://discuss.appium.io/user_avatar/discuss.appium.io/marcussucilea/32/13950_2.png) [@marcussucilea](https://discuss.appium.io/u/marcussucilea)\
**Post date:** [April 16, 2025, 1:38pm UTC](https://discuss.appium.io/t/econnreset-error-when-connecting-to-appium-2-x-server/45694/15 "2025-04-16T13:38:20Z")

</div>

We were able to telnet the ip address and the port and it works but the appium still responds with ECONNRESET. Do you know what are the conditions for this response?
