How to Change Max Players on Your Terraria Server

Set the player limit on your Terraria dedicated server using maxplayers in serverconfig.txt.

The default Terraria player limit is 8. The game technically supports up to 255 players, but most servers run 4–16 due to performance and gameplay design.

Open Startup

In the XGamingServer Panel, click Startup in the sidebar.

Set Max Players

Find the Max Players field and enter your desired count.

Restart

Restart from Console to apply.

Stop the server

Go to Console and stop your server.

Open serverconfig.txt

Click Files in the sidebar and open serverconfig.txt in the server root.

Set maxplayers

maxplayers=8

Save and start

Click Save Content and start from Console.

PlayersBest ForNotes
2–4Small co-opTight-knit groups
4–8StandardDefault — works on any plan
8–16Active communityDecent CPU needed
16–32Public PvP / eventsRequires strong hardware
32+Stress testingNot recommended for normal play

Performance note: Each player adds physics simulation for projectiles, NPCs, and dropped items. Above ~16 players, you may notice lag during boss fights or events with many enemies.

How is this guide?

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

On this page