louis49 / androidtv-remote

MIT License
68 stars 23 forks source link

ECONNREFUSED #12

Closed sinhpn92 closed 2 years ago

sinhpn92 commented 2 years ago

I have got the error when try to connect to the androidtv. Could you please review this error:

Start Pairing Connect
192.168.2.112 Pairing connected
192.168.2.112 Pairing secure connected 
192.168.2.112 Pairing Connection closed false
Start Remote Connect
192.168.2.112 Error: connect ECONNREFUSED 192.168.2.112:6466
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) {
  errno: -61,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.2.112',
  port: 6466
}
192.168.2.112 Remote Connection closed  true
ECONNREFUSED
Start Remote Connect
192.168.2.112 Error: Client network socket disconnected before secure TLS connection was established
    at connResetException (node:internal/errors:691:14)
    at TLSSocket.onConnectEnd (node:_tls_wrap:1585:19)
    at TLSSocket.emit (node:events:402:35)
    at endReadableNT (node:internal/streams/readable:1343:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ECONNRESET',
  path: undefined,
  host: '192.168.2.112',
  port: 6466,
  localAddress: undefined
}
192.168.2.112 Remote Connection closed  true
Unpaired
ECONNRESET

What's wrong there? Have any suggest to solve issue? Thank you so much!

louis49 commented 2 years ago

The pairing socket seems to be closed before asking for code. What’s the version of AndroidTV do you use ?

sinhpn92 commented 2 years ago

The pairing socket seems to be closed before asking for code. What’s the version of AndroidTV do you use ?

Thank you for reply.

My AndroidTV used Android Pie.

louis49 commented 2 years ago

Ok, then this plugin is not made for this old version of Android. You need to find an other that take in charge old remote protocol

sinhpn92 commented 2 years ago

Ok thank you so much. I will do that.