Tag Archives: tcp

C# tcplistener forcibly closed after one connection

Questions: Tcplistener throws out “System.IO.IOException: ‘Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.” and same goes for the Inner exception, after the bytes get sent once. I intend to create tcp client and server so that the server keeps receiving the bytes and run each… Read More »

C# TCPListener stops listening after idle phase

Questions: I’m trying to figure out why my clients sometimes cannot connect to the Server after the listener was running some time without any client tried to connect. The only way to fix it, is to restart the TCP listener – the server. There are no issues if I start the server and some people… Read More »