How to Change Max Players on Your Factorio Server

How to set the player limit on your Factorio dedicated server.

In server-settings.json:

"max_players": 0

0 = unlimited. Set a number to cap (e.g., 20).

You can also change it at runtime:

/config set max-players 20

How is this guide?

40% Off — Limited TimeGet your Factorio server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page