ECONNRESET Error When Connecting to Appium 2.x Server

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?