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

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

Ports

PortProtocol
7777TCP

Mods (tModLoader)

Install tModLoader via Startup settings. Mods go in ModLoader/Mods/. Enable in enabled.json.

  • Calamity — massive content expansion
  • Thorium — new classes, bosses, items

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