I'm using WSL for some node development on a Windows 10 machine (build 1803). Inevitably, within a few hours of starting WSL, all ports on the system become bound. At this point, no new network connections open, and I effectively lose network access until I restart.
netstat -qn |findstr BOUND
This shows all TCP ports bound up to the max, such as:
TCP 0.0.0.0:60755 0.0.0.0:0 BOUND
I've tried using ipconfig to reset the windows side adapter, killing all WSL processes, and a bunch of other things, but nothing unbinds the ports. I'd like to be able to use my computer without having to restart every few hours.
I was able to find an open issue with limited info: https://github.com/Microsoft/WSL/issues/2523 but no solutions or workarounds.
Any way to reset WSL or open the ports would be much appreciated!
netstat -qno | find "BOUND"
, what is the PID (last column) and what does this map to in TaskManager/Tasklist.exe?get-nettcpconnection -state BOUND -OwningProcess ((Get-Process adb).ID)[0] | select LocalAddress, LocalPort, state
Note: I've put the process in asadb
is that correct?