Skip to content

Instantly share code, notes, and snippets.

@bcowell
Last active February 21, 2019 21:36
Show Gist options
  • Save bcowell/9ae5c9e1a184d7ea00dffb64d6449b5e to your computer and use it in GitHub Desktop.
Save bcowell/9ae5c9e1a184d7ea00dffb64d6449b5e to your computer and use it in GitHub Desktop.
Powershell command - Edit TcpTimedWaitDelay
netsh int ipv4 set dynamicport tcp start=1025 num=64510
netsh int ipv4 show dynamicport tcp
New-ItemProperty `
-Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" `
-Name "TcpTimedWaitDelay" `
-Value "30" `
-PropertyType "DWord"
@bcowell
Copy link
Author

bcowell commented Feb 21, 2019

The TcpTimedWaitDelay value determines the length of time that a connection stays in the TIME_WAIT state when being closed. While a connection is in the TIME_WAIT state, the socket pair cannot be reused.
https://docs.microsoft.com/en-us/biztalk/technical-guides/settings-that-can-be-modified-to-improve-network-performance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment