androidtv-remote
androidtv-remote copied to clipboard
Error: connect ECONNREFUSED
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 ?
Hi, this package only works with Android >= 11 Try another library with old way to communicate (json way)
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.