WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Failed to connect to localhost port 8888 after 0 ms: Connection refused on WSL2

Open lucas-eedu opened this issue 2 years ago • 1 comments

Windows Version

Microsoft Windows [Version 10.0.22631.3155]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • [X] WSL 2
  • [ ] WSL 1

Kernel Version

5.15.133.1-1

Distro Version

Ubuntu 22.04.4 LTS

Other Software

I noticed this error when trying to download NVM using curl. However, other applications that need to use the localhost:8888 port also report the same error. VSCODE Example: Failed to establish a socket connection with proxies: ["PROXY localhost:8888"]

  • In my research I saw a lot of problems related to the use of Docker (I wasn't able to confirm that my problem was related to my Docker, but it's good to let them know that I have it installed and use it on a daily basis)

Repro Steps

Open terminal WSL2 Run: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash

Expected Behavior

I expected it to download normally

Actual Behavior

➜ ~ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to localhost port 8888 after 0 ms: Connection refused

Diagnostic Logs

No response

lucas-eedu avatar Feb 16 '24 02:02 lucas-eedu

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar Feb 16 '24 02:02 github-actions[bot]