'web-ext connect ECONNREFUSED ::1:5037

I am creating firefox extension, and trying to test using official firefox documentation here: https://extensionworkshop.com/documentation/develop/developing-extensions-for-firefox-for-android/#install-and-run-your-extension-in-firefox-for-android

When I try to run the command: web-ext run -t firefox-android --adb-device XXX --firefox-apk org.mozilla.fenix

It throws me this error: enter image description here

Error: connect ECONNREFUSED ::1:5037 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)

Error code: ECONNREFUSED

I have done everything, turned off my firewall. Yet no success..



Solution 1:[1]

Update - In windows, it didn't work. In ubuntu (wsl), it worked

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Priyanshu Dwivedi