Max TCP Connections to a machine
Posted
by A9S6
on Stack Overflow
See other posts from Stack Overflow
or by A9S6
Published on 2009-03-18T11:32:43Z
Indexed on
2010/04/08
5:13 UTC
Read the original article
Hit count: 618
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"
© Stack Overflow or respective owner