Maximum TCP Client Connection Number in Windows 7 Pro for C # TCP Server Software

I am running a TCP server on my machine. My operating system is Windows 7 Professional. I tested my server with TCP connection testing software, and I think that my computer does not allow more than 300-400 connections. I tested my software for 1000 TCP clients, and every time my software (or a computer that I do not know) does not accept more than 300-400 connections.

What is the maximum number of connections for a PC (and not a server PC) is practically not theoretical. I am developing software on a Windows 7 PC, but I will use the software on Windows Server, so I want to know if the problem is my operating system or my software.

Thanks.

+6
source share
2 answers

The problem seems to be related to the number of ports that can be opened. The default values ​​are small. Check this link for steps to increase them in windows.

Max, I believe 65534

+1
source

I remember that there is a restriction on limiting the number of connections to a TCP port in order to avoid DoS attacks (Denial Of Service).

This is a parameter that can be turned off, perhaps this is the limit that you are reaching.

Look here

+1
source

Source: https://habr.com/ru/post/913012/


All Articles