Skip to content

Terraria server guide

Hostboi runs three Terraria servers: Terraria Vanilla is the official dedicated server, tModLoader adds content mods, and TShock adds accounts, permission groups, regions and plugins. Everything below is true for all three unless a section says otherwise. The difference that surprises people: vanilla and tModLoader have no admin accounts at all — you administer them from the panel console — while TShock has a permission system you claim on your first join.

Open Startup. The panel applies these fields at every start (through serverconfig.txt on vanilla, through the start command on tModLoader and TShock), so change them there and not by hand in a file. Not every field exists on all three server types.

Field What it does
World Name Name of the .wld file, and the name shown in the join screen
World Size 1 small, 2 medium, 3 large — used only when the world is first created
Difficulty 0 normal, 1 expert, 2 master, 3 journey — used only when the world is first created
World Seed Seed for a new world; leave blank for a random one
Max Players Player cap (8 by default)
MOTD Message shown in the join screen and on connect
Password Join password; leave blank for an open server
NPCStream 0–60; higher values reduce enemy skipping at the cost of bandwidth

World Size, World Seed and Difficulty are read once, when the world is generated. Changing them later does not resize or re-roll the existing world — you get a new world only if you point World Name at a name that does not exist yet, or delete the old .wld file. Take a backup before you do either.

The Terraria version field (vanilla) and tModloader Version (tModLoader) choose the server build, and they are used when the server files are installed. For TShock the version is fixed by the panel and not editable.

Restart after any change. If you edit any other line in serverconfig.txt — secure=1 and banlist=banlist.txt are the two worth knowing — stop the server first so your edit is not lost.

Relative to the server root, as shown in Files:

  • saves/Worlds/<world name>.wld — the world (vanilla and tModLoader)
  • <world name>.wld — the world (TShock, which keeps worlds next to the server binary)
  • serverconfig.txt — the config the panel writes at every start
  • banlist.txt — bans, one player per entry
  • tshock/ — TShock’s own config and data
  • ServerPlugins/ — TShock plugins
  1. Take a backup.
  2. Stop the server.
  3. Upload the .wld file: to saves/Worlds/ on vanilla and tModLoader, to the server root on TShock.
  4. Set World Name on Startup to the file name without the .wld — MyWorld.wld means MyWorld.
  5. Start the server and watch Console for the world load lines.

Only the .wld file is needed. On Windows, a world from a single-player game is in Documents/My Games/Terraria/Worlds; the matching .twld is tModLoader’s per-world mod data.

Vanilla Terraria has no admin accounts. There is no /op, no permission list and nothing to add to a file. You run the server from Console in the panel, and the console can do everything: kick, ban, change the password, set the time and save. If you want named staff with limited powers, that is what TShock is for.

tModLoader is the same. Its console has the same commands as vanilla plus mod handling; there is still no admin account system.

TShock has one, and you claim it on the first start:

  1. Start the server and open Console. On the first boot TShock prints a line telling you to join and type /setup <code>, with a one-time code.
  2. Join the server in game, open chat and type /setup <code> with that exact code.
  3. Immediately create your account: /user add YourName YourPassword owner. Use a password you do not use anywhere else — never post it in Discord or a ticket.
  4. Log in with /login YourName YourPassword. You now have owner rights.

From there, /user add <name> <password> <group> creates accounts for staff, /group addperm <group> <permission> grants powers, and /region define <name> protects an area. Change the join password on Startup (field Join Password), not in tshock/config.json: the panel value overrides the file on every start.

  1. Take a backup.

  2. Stop the server.

  3. Upload each .tmod file to the mods/ folder with Files or SFTP.

  4. Add each mod’s internal name to mods/enabled.json, which is a JSON list of names:

    ["CalamityMod", "ThoriumMod"]
  5. Start the server and check Console for the mod load list.

Every player needs the same mods at the same versions, or the join is refused at the mod handshake. A world made with content mods will not load cleanly without them, and a modded world will not open in vanilla Terraria.

Upload the plugin’s .dll to ServerPlugins/ over SFTP, restart, and check Console for the plugin’s load line. Plugins are built against a specific TShock and Terraria version, so one built for an older release will fail to load rather than half-work. TShock config lives in tshock/config.json; stop the server before editing it.

On vanilla and tModLoader, typed into Console. TShock replaces these with its own command set; type help in Console on a TShock server to list it:

  • help — list the commands this build supports
  • playing — players online
  • say <message> — broadcast in chat
  • save — save the world now
  • kick <player>, ban <player> — remove a player; un-ban by editing banlist.txt
  • password <new password> — change the join password for this session
  • time, dawn, noon, dusk, midnight — read or move the world clock
  • exit — save and shut down (use the panel’s stop button instead)

Use exit only if the panel’s power controls are not responding: it ends the process, and the panel will show the server as stopped.

  • “Incorrect password” — the join password comes from the Password field on Startup (vanilla) or Server Password (tModLoader). Change it there and restart, then give it to players out of band.
  • A new world appears instead of my old one — World Name and the file name do not match, or the .wld is in the wrong folder. Check the path for your variant above.
  • “You are not using the same version” — the client and server builds differ. Check the version in Console against the game’s title screen.
  • tModLoader refuses the join — a mod is missing or on a different version on the client. Send players your exact mod list.
  • TShock: “You do not have permission” — your account is in a group without that permission; grant it with /group addperm, or log in as the owner account.
  • Can’t connect — confirm the address and port from the server page, not the SFTP port. See Connecting to your server.