Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: connect ECONNREFUSED #37

Open
bombkiml opened this issue Oct 18, 2023 · 2 comments
Open

Error: connect ECONNREFUSED #37

bombkiml opened this issue Oct 18, 2023 · 2 comments

Comments

@bombkiml
Copy link

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 ?

@louis49
Copy link
Owner

louis49 commented Oct 18, 2023

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

@bombkiml
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants