Terraria Artwork

Wiki & Guides

Terraria

Sandbox · 2D Adventure · Re-Logic

Rent Terraria Server

Terraria serverconfig.txt Explained: All Options at a Glance

Terraria's serverconfig.txt fully explained: difficulty values, maxplayers, port 7777, Journey permissions, seeds and world size — with a complete table.

Last updated July 20, 2026 · RespawnHost

On this page

What is serverconfig.txt?

serverconfig.txt is the central configuration file of the Terraria dedicated server: world, difficulty, player count, port, password — it all lives here. At RespawnHost you manage the most important values comfortably via the startup variables in the panel; the file itself is always reachable through the file manager. Changes take effect after a server restart.

All serverconfig.txt options

OptionValuesMeaning
worldpathWhich world file is loaded
autocreate1 / 2 / 3Auto-creates a world: 1 = small, 2 = medium, 3 = large
worldnametextName of the auto-created world
seedtextSeed for world generation (secret seeds included)
difficulty0–30 = Classic, 1 = Expert, 2 = Master, 3 = Journey
maxplayers1–255Maximum player count (default 16)
portnumberServer port (default 7777, TCP)
passwordtextServer password (empty = open)
motdtextWelcome message on join
secure0 / 1Anti-cheat protection on/off
npcstreamnumberNPC stream rate (default 60)
priority0–5Process priority of the server
languagee.g. en-USLanguage of server output
upnp0 / 1UPnP port forwarding (irrelevant on rented servers)
banlistfilePath to the ban list (default banlist.txt)
journeypermission_*0–2Journey Mode permissions (see below)

Warning

The difficulty value only applies to newly created worlds (via autocreate). An existing world keeps its difficulty — Journey worlds and Classic/Expert/Master worlds cannot be mixed.

Which difficulty value should I pick?

  • 0 — Classic: The normal mode, ideal for mixed groups and beginners.
  • 1 — Expert: Tougher enemies, better loot tables, new boss mechanics.
  • 2 — Master: The hardest tier — for experienced teams.
  • 3 — Journey: Creative mode with item duplication, god mode & co. — what players may use is controlled via the Journey permissions.

Journey permissions: who may do what?

For Journey worlds, the journeypermission_* entries control which Journey powers regular players may use. Each entry accepts 0–2:

ValueMeaning
0Locked for everyone
1Hosts/permitted players only
2Unlocked for everyone

There is one entry per Journey power (time, weather, spawn rate, god mode etc.) — all following the pattern journeypermission_<power>.

Frequently asked questions

How do I change the maximum player count? Set maxplayers to a value between 1 and 255 (default 16) and restart the server. Keep in mind: more players means more load — see the RAM guide.

Can I change the difficulty of an existing world? Not via serverconfig.txt — difficulty only applies during world generation. For a different difficulty you need a new world.

How do I protect my server with a password? Enter a password under password and restart. Players are asked for it on join.

What does the secure option do? secure 1 (default) enables the built-in anti-cheat. For serious permission management, TShock is still the better choice — see the admin guide.