louis49 / androidtv-remote

MIT License
69 stars 23 forks source link

Error: connect ECONNREFUSED #37

Open bombkiml opened 11 months ago

bombkiml commented 11 months ago

Env:

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 ?

louis49 commented 11 months ago

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

bombkiml commented 11 months ago

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.