How to Configure Your Terraria Server (serverconfig.txt)
Complete Terraria server configuration — world, password, players, difficulty, and mods.
Terraria uses serverconfig.txt for server settings.
Key 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 |
difficulty=0 | 0=Classic, 1=Expert, 2=Master, 3=Journey |
seed= | World seed |
autocreate=2 | World size: 1=Small, 2=Medium, 3=Large |
secure=1 | Anti-cheat |
motd=Welcome! | Message of the Day |
Ports
| Port | Protocol |
|---|---|
| 7777 | TCP |
Mods (tModLoader)
Install tModLoader via Startup settings. Mods go in ModLoader/Mods/. Enable in enabled.json.
Popular Mods
- Calamity — massive content expansion
- Thorium — new classes, bosses, items
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