ECONNRESET Error When Connecting to Appium 2.x Server

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

Possibly you did not updated appium server url? → Migrating to Appium 2 - Appium Documentation

Unfortunately you did not provide more info or logs …


There are no logs as connection doesnt go through.



This is the log file

  • 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?
1 Like

I can ping but cannot telnet the port

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.

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

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

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?

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

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

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

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?