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

ECONNREFUSED with Node 17 #251

Closed
eight04 opened this issue Oct 25, 2021 · 0 comments · Fixed by #253
Closed

ECONNREFUSED with Node 17 #251

eight04 opened this issue Oct 25, 2021 · 0 comments · Fixed by #253

Comments

@eight04
Copy link

eight04 commented Oct 25, 2021

Quote from mozilla/web-ext#2331 (comment):

const client = net.createConnection(this.port!);

This used to connect to 127.0.0.1 but node@17 prefers IPv6 (nodejs/node#40537). However, Chrome doesn't listen on IPv6 so it never connects. A simple fix:

-- const client = net.createConnection(this.port);
++ const client = net.createConnection(this.port, '127.0.0.1');
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

Successfully merging a pull request may close this issue.

1 participant