0

I'm using Windows11 with Ubuntu on WSL2. On Ubuntu I have Jupyterlab installed. Previously I was always able to connect to Jupyterlab from my Windows11 browser using address: localhost:8888. But this morning suddenly this connection failed.

  • I have connected to Ubuntu directly via remote desktop. From there I could connect to localhost:8888 with no problems.
  • I have disabled firewalls on both sides but still couldn't connect to 8888 from Windows.
  • I have used netstat -a on both sides but couldn't see any process on port 8888
  • I have in my wsl config :kernelCommandLine=ipv6.disable=1 ;localhostforwarding=true
  • Finally I tried starting Jupyterlab on port 9999 instead of 8888. To my surprise this worked without problems.

I would really like to go back to using port 8888 for several reasons. But I have no idea how to find the cause of this problem. It seems that 8888 has become unusable somehow in the WSL2 connection. It works fine on linux. There seem to be no other programs using the port...

Does anyone have an idea of how to trace the source of this problem?

Rutger Moody
  • 103
  • 3

1 Answers1

2

I have the exact same issue but I think I identified the root cause. It is likely because there is another process already listening on ipv6 address with port 8888. When you hit localhost:8888 it goes there first and then shows the 404.

You can check this in windows by doing:

netstat -ano | findstr :8888

then based on pid, do :

tasklist /fi "pid eq <PID>"

likely you will see what's the process thats been listening there.

Nemo
  • 36