How to Configure Your Terraria Server (serverconfig.txt)
Complete Terraria serverconfig.txt reference — world settings, password, difficulty, max players, and tModLoader.
serverconfig.txt
Editing serverconfig.txt
Open Files
In the XGamingServer Panel, click Files → open serverconfig.txt.
All Settings
| Setting | Description |
|---|---|
worldname=MyWorld | World name |
world=path/to/world.wld | World file path |
maxplayers=8 | Max players (default 8, max 255) |
password= | Join password |
port=7777 | Game port (TCP) |
difficulty=0 | 0=Classic, 1=Expert, 2=Master, 3=Journey |
seed= | World seed |
autocreate=2 | Size: 1=Small, 2=Medium, 3=Large |
secure=1 | Anti-cheat (disable for modded) |
motd=Welcome! | Message of the Day |
Port
| Port | Protocol |
|---|---|
| 7777 | TCP |
Related Guides
How is this guide?

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