Starteam Server error "Unable to start listening for connections"
Recently, Microsoft has increased the dynamic client port range for outgoing connections in Windows Vista and in Windows Server 2008. The new default start port is 49152, and the default end port is 65535. This is a change from the configuration of earlier versions of Windows that used a default port range of 1025 through 5000.
As you may already know, StarTeam Server uses 49201 as default port.
Such change increases probability--when all the services are racing to grab resources on system start up--a random process may occupy a pre-configured StarTeam port, causing that StarTeam server to fail with one of these error messages:
- "Only one usage of each socket address (protocol/network address/port) is normally permitted"
- "Unable to start listening for connections. The IP address and endpoint combination may already be in use"
How can I change the dynamic port range to prevent this from happening?
Depending on the number of StarTeam configuration you plan to host, the default dynamic port range should be configured to start from 49201+n, with n being the number of ports reserved for StarTeam.
See this Microsoft support article for more information on setting the dynamic port range:
Alternatively, configure StarTeam Server to use a port number much lower than 49152. This solution will require changes on StarTeam Client to connect to the new port number.