Thursday, January 13, 2011

Insufficient winsock resources available to complete socket connection initiation / tcp error code 10048

I have been trying to track down this problem for some time. Here are the symptoms I have seen.
There are a bunch of "TCP error code 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted" messages in the Application Log
There are a bunch of "Insufficient winsock resources available to complete socket connection initiation"
I cannot connect to my SharePoint site or sometimes cannot even open central administration
Running netstat and TCPView results in thousands of connections in TIME_WAIT

I am running Windows 2008 x64 R2. According to KB929851 The default dynamic port range for TCP/IP has changed in Windows Vista and in Windows Server 2008, the number of ports has been bumped from a default range of 1025-5000 to a range of 49152-65535. So, bumping up the value to  HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\MaxUserPort does not help at all.

Also, these sockets are stuck in TIME_WAIT. By default the TIME_WAIT delay HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\TCPTimeWaitDelay is 240 so these should have been cleaned up after 4 minutes anyway. So, why are they not being cleaned up?

Anyone who has an idea of what's going on, please feel free to comment. In the meantime, I'm just going to reboot.

Another reference: Hurry Up and TIME_WAIT


  1. Did you ever find a solution to this problem? It seems we are experiencing a very similar situation...

  2. Not really. It looked like some port scanning type activity, but I didn't dig much deeper as I haven't been seeing this for quite some time.

  3. Anyone have found the solution for above issue please let me know