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

SettingDescription
worldname=MyWorldWorld name
world=path/to/world.wldWorld file path
maxplayers=8Max players (default 8, max 255)
password=Join password
port=7777Game port (TCP)
difficulty=00=Classic, 1=Expert, 2=Master, 3=Journey
seed=World seed
autocreate=2Size: 1=Small, 2=Medium, 3=Large
secure=1Anti-cheat (disable for modded)
motd=Welcome!Message of the Day

Port

PortProtocol
7777TCP

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