You can either modify your Game.ini file, or append the parameter below to your launch command:
Game.ini
-ini:Game:[/Script/Engine.GameSession]:MaxPlayers=8
Example:
./FactoryServer.sh -Port=7777 -ini:Game:[/Script/Engine.GameSession]:MaxPlayers=8
There was an error while loading. Please reload this page.