From time to time, you may not have available ports. You can easily view it with the TcpView utility from SysInternals.
On Windows, when you free a port, it does not immediately go into an accessible state, but instead sits in TIME_WAIT state for a certain interval. Until he leaves this state, the application will not be able to use this port. The time delay, the maximum number of ports and the available port ranges differ from OS, XP and Win7 vs Win2008 Server.
There are two registry entries that can reduce this time interval: HKLM/System/CurrentControlSet/Services/Tcpip/Parameters/TCPTimedWaitDelay
and increase the maximum number of ports that can be opened by the application: HKLM/System/CurrentControlSet/Services/Tcpip/Parameters/MaxUserPort
EDIT: MaxFreeTcbs seems to be the third parameter that could help (I haven't tried this yet) mentioned in this TechNet article , which has more recommendations for tracking odd network issues. NTN.
source share