Adjust TCP Max Retransmission Timeout in Regedit
This article explains how to adjust the system-wide TCP maximum retransmission timeout parameters in Windows using the Registry Editor (Regedit). Modifying these settings controls how many times the operating system attempts to retransmit unacknowledged data packets before terminating the connection, which is essential for optimizing network behavior in high-latency or unstable environments.
Step 1: Open the Windows Registry Editor
- Press
Win + Ron your keyboard to open the Run dialog box. - Type
regeditand press Enter or click OK. - If prompted by User Account Control (UAC), click Yes to grant administrative privileges.
Step 2: Navigate to the TCP/IP Parameters Key
In the Registry Editor, use the left-hand navigation pane to browse to the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Alternatively, you can copy and paste this path directly into the address bar at the top of the Registry Editor window and press Enter.
Step 3: Modify or Create the Retransmission Parameters
To adjust the maximum retransmission attempts for active data
transfers, configure the
TcpMaxDataRetransmissions value.
- In the right-hand pane of the
Parameterskey, look for the entry namedTcpMaxDataRetransmissions. - If the entry does not exist:
- Right-click an empty space in the right pane.
- Select New > DWORD (32-bit) Value.
- Name the new value
TcpMaxDataRetransmissionsand press Enter.
- Double-click
TcpMaxDataRetransmissionsto open its edit window. - Under Base, select the Decimal radio button.
- In the Value data field, enter the desired number
of retransmissions:
- Default:
5(retries 5 times before dropping the connection). - Lower values (e.g., 2–3): Aborts failed connections faster.
- Higher values (e.g., 6–10): Gives connections on slow or lossy networks more time to recover.
- Default:
- Click OK to save the value.
Optional: Adjust Connection Handshake Retransmissions
To adjust the timeout for initial SYN connection attempts rather than active data transfers:
- In the same
Parametersfolder, look for or create a DWORD (32-bit) Value namedTcpMaxConnectRetransmissions. - Double-click it, select Decimal, and set the value:
- Default:
2(Windows retries the SYN packet twice, with doubling timeouts, before giving up).
- Default:
- Click OK.
Step 4: Restart the System
TCP/IP stack registry changes do not apply dynamically. Close the Registry Editor and restart your computer to apply the updated TCP retransmission parameters across the entire system.