-
Notifications
You must be signed in to change notification settings - Fork 835
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
Huge amount of ports are being reserved #5306
Comments
Are you sure those are assigned for WSL? Can you check the output from TcpView tool as administrator? Also please fill up all the fields of the issue template, its useful to fix issues. |
@Biswa96 The ports are reserved, but not process uses them.
I have installed Windows update to 2004 2 days ago, but this problem arose today. |
This is my output of
I have Hyper-V and WSL2 enabled with a running Docker container and working without issue. Do you have anything different from a new install? Additional Av/Firewall, DNS server, VPN... it looks like something is being blocked and insists in reserving ports. Edit: Found user with same problem and a workaround |
I have absolutely no idea why I had this problem. I just reinstalled Windows and now all works fine |
A faulty Windows upgrade is the reason for the problems with reserved tcp ports. That would explain why a clean install fixes these type of problems. |
If that happens again, try this:
|
/dupe #5514 |
Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
I had the same problem and my 1080 port was reserved so I couldn't run my local socks5 service. |
In my case I solve this issue knowing which port my application needs (25340) and knowing what ranges are reserved by
which gives me this output:
As you can see, this command tells me that from 25313 to 25412 those ports are reserved, so I simply change the port of my app and now all is working fine. |
how about fix? |
After updating to WSL2 there is a huge amount of ports reserved.
Running this command:
netsh int ipv4 show excludedportrange protocol=tcp
i can tell that most ports from4294
to9783
are reserved.This is very troublesome, because I can't event start docker container on a port, because it throws
@edit
Please fill out the below information:
ver
at a Windows Command Prompt)some_command
is failing, then runstrace -o some_command.strace -f some_command some_args
, and link the contents ofsome_command.strace
in a gist here).The text was updated successfully, but these errors were encountered: