Only one usage of each socket address (protocol/network address/port) is normally permitted

Reading Time: < 1 minute

If you find a service stops after you start it on your server and upon checking the event log you find the below error:

“Only one usage of each socket address (protocol/network address/port) is normally permitted (typically under load).”

The cause is due to TCP/IP port exhaustion can occur on a client computer if the client computer is engaging in an unusually high number of TCIP/IP socket connections. This can occur if many client applications are initiating connections. If all of the available ephemeral ports are allocated to client applications then the client experiences a condition known as TCP/IP port exhaustion. When TCP/IP port exhaustion occurs, client port reservations cannot be made and errors will occur in client applications that attempt to connect to a server via TCP/IP sockets. TCP/IP port exhaustion is more likely to occur under high load conditions than under normal load conditions. (Source: Microsoft)

The above issue can be resolved by following the below instructions. Please be careful when making any registry changes. Always take a backup.

1) Access registry and locate and click HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\
2) Find the key MaxUserPort and increase the decimal figure to 6000 or a maximum of 65534

You can also reduce the time a connection is in the TIME_WAIT state. The default is 4 minutes. See instructions below.

1) Access registry and locate and click HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\
2) Locate the key TCPTimedWaitDelay and increase the decimal figure to 30 seconds.

Restart server

Please follow and like us: