Fix STATUS_TOO_MANY_ADDRESSES (0XC0000209) on Windows
Your PC ran out of network ports or addresses. Here's how to free them up fast.
Cause #1: Your computer ran out of temporary network ports (port exhaustion)
I know this error is infuriating — especially when you're in the middle of something important. The message STATUS_TOO_MANY_ADDRESSES (0XC0000209) basically means your Windows machine has pinned all the available network ports it can use. Think of it like a parking lot that's totally full. No new network sessions can start.
This usually happens when an app (or a few) opens tons of connections and never closes them properly. Common culprits are web browsers with too many tabs, torrenting software, or a misbehaving Windows service. One user I helped had Chrome open 147 connections after a week of uptime. That'll do it.
How to check if this is your problem
- Open Command Prompt as Administrator. Press Win + R, type
cmd, then press Ctrl + Shift + Enter. - Run this command to see current ephemeral port usage:
If the number is above 4000, you're close to the default limit.netstat -ano | find /c "ESTABLISHED" - Check the max number of dynamic ports:
The default on Windows 10/11 is usually 16384 to 65535. That's about 49,000 ports max.netsh int ipv4 show dynamicportrange tcp
The fix: Increase the port range
Don't just reboot — that's a temporary band-aid. The real fix is to increase the range of ports Windows can use. This tripped me up the first time too, but it's a 30-second fix.
- Open Command Prompt as Administrator again.
- Run this command to expand the dynamic port range:
This gives you about 55,000 ports instead of the default 49,000. I've also usednetsh int ipv4 set dynamicport tcp start=10000 num=55535start=2000 num=63535on systems with many concurrent connections. - Do the same for IPv6 if you use it:
netsh int ipv6 set dynamicport tcp start=10000 num=55535 - Restart your computer. The error should go away.
Cause #2: A specific app is holding ports open too long
If increasing the port range didn't help, or if you see the error again after a few days, there's probably a leaky app. Web browsers, game launchers, and some enterprise software (like VPN clients) are notorious for this.
Find the culprit
- Run this command to see which apps are hogging connections:
Note the PID (Process ID) at the end of each line.netstat -ano | find /i "established" - Match PID to app name:
Replacetasklist | findstr "1234"1234with the PID you saw.
If Chrome has 500 connections, close it. If a service named wlms.exe has 300, that's Windows License Manager — you can safely restart the service with net stop wlms & net start wlms.
Quick fix: kill the hanging connections
You can force close all connections from a specific PID. Say Chrome's PID is 5678:
netstat -ano | find "5678" | find "ESTABLISHED" | for /f "tokens=5" %a in ('more') do (netsh int ipv4 delete neighbors %a & netsh int ipv6 delete neighbors %a)
Or just restart the app. But if it's a Windows service, use net stop [servicename] and net start [servicename].
Cause #3: Registry tweak — increase max connections allowed
On older Windows versions (Windows 7, Server 2008 R2), there's a hard limit on concurrent TCP connections. Windows 10/11 removed this limit, but some antivirus or firewall software can re-enable it. Don't mess with this unless you've already tried the port range fix.
Check and fix the registry
- Press Win + R, type
regedit, and press Enter. - Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters - Look for a DWORD named
TcpNumConnections. If it exists and has a low value like0x00000bb8(3000 decimal), that's your problem. Double-click it and change the value to0x00ffffff(16777214 decimal). If it doesn't exist, you're fine — leave it alone. - Also check
TcpTimedWaitDelay. If it's missing, create a DWORD namedTcpTimedWaitDelayand set it to0x0000001e(30 decimal). This reduces how long a port stays in TIME_WAIT state after closing. - Restart your PC.
Quick-reference summary table
| Cause | Symptom | Fix |
|---|---|---|
| Port exhaustion | Error appears after heavy network use | Run netsh int ipv4 set dynamicport tcp start=10000 num=55535 |
| App holding ports open | Error occurs when using specific software | Find PID with netstat -ano, then close or restart the app |
| Registry limit or slow port release | Error persists even after reboot | Add or modify TcpNumConnections and/or TcpTimedWaitDelay |
I've seen this error on Windows 10, Windows 11, and even on Windows Server 2019. The port range fix works 9 times out of 10. If you're still stuck after that, check for a rogue app or scan for malware — some worms cause massive connection spikes. Good luck, and you've got this.
Was this solution helpful?