MaxClients Property  
 

Gets and sets the maximum number of clients that can connect to the server.

Syntax

object.MaxClients [= clients ]

Remarks

The MaxClients property specifies the maximum number of client connections that will be accepted by the server. Once the maximum number of connections has been established, the server will reject any subsequent connections until the number of active client connections drops below the specified value.

Changing the value of this property while a server is actively listening for connections will modify the maximum number of client connections permitted, but it will not affect connections that have already been established. You can also use the Throttle method to change the maximum number of guest users, the maximum number of clients per IP address and the rate at which clients can connect to the server.

It is important to note that regardless of the maximum number of clients specified by this property, the actual number of client connections that can be managed by the server depends on the number of sockets that can be allocated from the operating system. The amount of physical memory installed on the system affects the number of connections that can be maintained because each connection allocates memory for the socket context from the non-paged memory pool.

The default value for this property is 100 client connections.

Data Type

Integer (Int32)

See Also

MaxGuests Property, Start Method, Throttle Method