2021-05-01, 07:07 PM
2021-04-22: Restricting Connections
You can limit how many people can connect to your server from the same IP:
That lets 3 people connect from the same IP. If any more try join they will fail to connect. You can also change what happens when too many people join:
That will ban an IP if more than 5 people try to connect from it. The available actions are:
You can limit how many people can connect to your server from the same IP:
Quote:
SetMaxConnections(3);
That lets 3 people connect from the same IP. If any more try join they will fail to connect. You can also change what happens when too many people join:
Quote:
SetMaxConnections(5, e_FLOOD_ACTION_BAN);
That will ban an IP if more than 5 people try to connect from it. The available actions are:
- e_FLOOD_ACTION_BLOCK - Don?t let any more connect (default).
- e_FLOOD_ACTION_KICK - Kick everyone using that IP.
- e_FLOOD_ACTION_BAN - Ban the IP (the players will time out).
- e_FLOOD_ACTION_FBAN - Ban the IP and instantly kick all the players on that IP.