androidtv-remote icon indicating copy to clipboard operation
androidtv-remote copied to clipboard

Error: connect ECONNREFUSED

Open bombkiml opened this issue 1 year ago • 2 comments

Env:

  • node: v14.19.0
  • Android Box TX6: version 9

My Code:

const AndroidRemote = require("androidtv-remote");

let host = "192.168.22.14";
let options = {
    pairing_port : 6467,
    remote_port : 6466,
    name : 'androidtv-remote',
}
let androidRemote = new AndroidRemote.AndroidRemote(host, options)

let started = androidRemote.start();

Run on command prompt:

$ node app.js
Start Pairing Connect
Error: connect ECONNREFUSED 192.168.137.205:6467
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16) {
  errno: -4078,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.22.14',
  port: 6467
}
192.168.22.14 Pairing Connection closed true
false

What wrong ?

bombkiml avatar Oct 18 '23 08:10 bombkiml

Hi, this package only works with Android >= 11 Try another library with old way to communicate (json way)

louis49 avatar Oct 18 '23 09:10 louis49

Hi, this package only works with Android >= 11 Try another library with old way to communicate (json way)

Do you have some library recommend for me ?

Thank you so much.

bombkiml avatar Oct 19 '23 02:10 bombkiml