Max TCP Connections to a machine
- by A9S6
I am creating a Windows Service in .NET to which N number of client can connect. The service starts a TCP listener and accepts the client connections.
The problem I am facing is that I can only open 10 connections to this service. The listener::AcceptTcpClient() method accepts only 10 connection and throws an exception for 11th one.
The client application uses the System.Net.Sockets.TcpClient class and the service is using System.Net.Sockets.TcpListener class.
This is the exception that I am getting when I try to make a number of connections in a for loop to this service (after the 10th connection is made):
"Unable to read data from Transport connection: An exsting connection was forcibly closed by remote host"