6

I've been running an application which binds to port 50005 for quite some time and it seems that something changed recently and no application on my machine is able to bind to any TCP port above 49690 .. on 127.0.0.1.

Does anyone know when / what changed?

OS Name Microsoft Windows 10 Enterprise
Version 10.0.17763 Build 17763

Warrick FitzGerald
  • 1,583
  • 3
  • 18
  • 28

3 Answers3

7

The problem was related to this: https://support.microsoft.com/en-za/help/929851/the-default-dynamic-port-range-for-tcp-ip-has-changed-in-windows-vista

It seems the Windows reserves the bottom range of these dynamic ports. The only way I could free up the port, allowing any application to bind to port 50005 was to move the dynamic port range up a little.

After the below change and a reboot all applications were once again able to bind to the port.

enter image description here

Warrick FitzGerald
  • 1,583
  • 3
  • 18
  • 28
6

It turned out the real problem was Docker.

netsh int ip show excludedportrange protocol=tcp

netsh int ip add excludedportrange protocol=tcp startport=50005 numberofports=2

Warrick FitzGerald
  • 1,583
  • 3
  • 18
  • 28
  • how do you know it's the docker? running that command does not give any information about what is holding those ports etc? – ANewGuyInTown Jul 15 '20 at 07:55
0

https://answers.microsoft.com/zh-hans/windows/forum/windows_10-networking/%E7%AB%AF%E5%8F%A3%E8%A2%AB%E5%8D%A0%E7%94%A8/14a7fecd-1b6e-4728-813c-d6077ea23dc5

https://github.com/docker/for-win/issues/3171

netsh int ipv4 show excludedportrange protocol=tcp

netsh int ip delete excludedportrange protocol=tcp startport=50005 numberofports=100