DustBowl.Games

Terraria Server Config Generator

Fill in the form to generate a ready-to-use serverconfig.txt for a vanilla Terraria dedicated server. The output updates live — copy or download when ready.

This tool generates configs for vanilla Terraria. For modded servers running tModLoader, use our tModLoader Server Setup Wizard instead.

Presets

1. World Settings world · size · difficulty · seed

Full path to your .wld file. If the file doesn't exist, Terraria auto-creates it using the world name and size below.

Used when auto-creating a new world. Should match the filename in your world path.

Can be a number or text. Empty = random seed each auto-creation.

Directory where worlds are stored. Include trailing slash.

2. Server Identity motd · password · players · port

Displayed to players when they join.

1 16 32 48 64
3. Options security · language · performance
secure= Anti-cheat (on)
upnp= UPnP automatic port forwarding (on)
npcstream= NPC stream optimization (off)

Enable on high-latency connections to reduce NPC packet spam.

Path to the ban list file. Relative paths are resolved from the server executable directory.

Generated serverconfig.txt

Live preview
# Terraria Dedicated Server Config
# Generated by DustBowl.Games — https://dustbowl.games/tools/terraria-server-config

# ─── World Settings ───────────────────────────────────────────
world=/root/terraria/worlds/MyWorld.wld
autocreate=3
seed=
worldname=MyWorld
difficulty=0
worldpath=/root/terraria/worlds/

# ─── Server Identity ──────────────────────────────────────────
maxplayers=8
port=7777
password=
motd=Welcome to my Terraria server!

# ─── Options ──────────────────────────────────────────────────
banlist=banlist.txt
secure=1
language=en/US
upnp=1
npcstream=0
priority=1

Where to place this file:
Save as serverconfig.txt in any directory, then pass it to the server executable.

How to Use This Config

Place your serverconfig.txt anywhere accessible by the server, then start the Terraria dedicated server executable with the -config flag pointing to it:

Linux

./TerrariaServer -config serverconfig.txt

Windows

TerrariaServer.exe -config serverconfig.txt

Tip: You can also pass individual settings as command-line flags (e.g. -port 7777), but the config file is easier to manage and version-control.

On a fresh install, the Terraria server automatically creates the world defined by worldname, autocreate, and difficulty if the world file doesn't already exist at the path specified by world.

Connection interrupted

We are restoring your session

Your account remains secure while we reconnect you.

Attempt in progress

A fresh reload verifies your session and pulls current content and security updates from the server.

Unsaved changes may be lost while your session is interrupted.

View system status

Need help? Home · Support · Discord

Check your connection, then try again or review our system status.

A fresh reload verifies your session and pulls current content and security updates from the server.

Unsaved changes may be lost while your session is interrupted.

View system status

Need help? Home · Support · Discord

The server rejected this session. Reload to continue securely.

A fresh reload verifies your session and pulls current content and security updates from the server.

Unsaved changes may be lost while your session is interrupted.

View system status

Need help? Home · Support · Discord

Connection status and recovery controls.