Max Network Connections Registry Settings
Windows manages network connection limits across different layers of the operating system, ranging from system-wide TCP/IP sockets to application-level HTTP requests. This guide details the specific Windows Registry entries used in Regedit to control the maximum number of simultaneous network connections, outlines their exact registry paths, and explains how to configure them.
1. System-Wide
TCP Connections (TcpNumConnections)
The primary registry entry that governs the maximum number of
simultaneous TCP connections that the TCP/IP stack can open at once is
TcpNumConnections.
- Registry Path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters - Value Name:
TcpNumConnections - Data Type:
REG_DWORD(32-bit Value) - Default Value:
16,777,214(Hexadecimal:0x00FFFFFE) - Function: Sets the absolute maximum limit of concurrent active TCP connections. Setting this value lower limits concurrent network traffic, while setting it to the default maximum effectively allows the system to utilize all available resources.
2. Maximum Outbound Ports
(MaxUserPort)
When applications establish numerous outbound connections, they can
run out of ephemeral ports. The
MaxUserPort entry controls the maximum
port number Windows can assign for outbound user sockets.
- Registry Path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters - Value Name:
MaxUserPort - Data Type:
REG_DWORD - Default Value: Typically
5000(legacy) or49152–65535range (modern Windows) - Recommended Maximum:
65534(Decimal) - Function: Increases the range of available client ports to prevent connection exhaustion during heavy network workloads.
3. Web
and HTTP Connection Limits (MaxConnectionsPerServer)
For web traffic handled via the Windows Internet (WinINet) API and Windows services, HTTP connection limits to a single web host are controlled by two distinct registry keys.
- Registry Path:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
(Or system-wide:HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings) - Value Names:
MaxConnectionsPerServer(Controls HTTP 1.1 connections)MaxConnectionsPer1_0Server(Controls HTTP 1.0 connections)
- Data Type:
REG_DWORD - Default Values:
2to6(depending on the Windows version) - Common Tweaked Values:
10or16(Decimal) - Function: Determines how many simultaneous connections a browser or client application can maintain with a single web server.
How to Modify These Entries in Regedit
- Press Win + R, type
regedit, and press Enter to open the Registry Editor. - Navigate to the relevant registry path specified above.
- Check if the value name exists in the right pane:
- If it exists, double-click it.
- If it does not exist, right-click an empty space, select New > DWORD (32-bit) Value, and name it exactly as listed.
- Set the Base to Decimal, enter your desired value, and click OK.
- Restart your computer for the changes to take effect.