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.
Change world and server settings
Section titled “Change world and server settings”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.
Where your files are
Section titled “Where your files are”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 startbanlist.txt— bans, one player per entrytshock/— TShock’s own config and dataServerPlugins/— TShock plugins
Upload an existing world
Section titled “Upload an existing world”- Take a backup.
- Stop the server.
- Upload the
.wldfile: tosaves/Worlds/on vanilla and tModLoader, to the server root on TShock. - Set World Name on Startup to the file name without the
.wld—MyWorld.wldmeansMyWorld. - 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.
Make yourself an admin
Section titled “Make yourself an admin”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:
- 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. - Join the server in game, open chat and type
/setup <code>with that exact code. - 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. - 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.
Install mods (tModLoader)
Section titled “Install mods (tModLoader)”-
Take a backup.
-
Stop the server.
-
Upload each
.tmodfile to themods/folder with Files or SFTP. -
Add each mod’s internal name to
mods/enabled.json, which is a JSON list of names:["CalamityMod", "ThoriumMod"] -
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.
Install plugins (TShock)
Section titled “Install plugins (TShock)”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.
Useful console commands
Section titled “Useful console commands”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 supportsplaying— players onlinesay <message>— broadcast in chatsave— save the world nowkick <player>,ban <player>— remove a player; un-ban by editingbanlist.txtpassword <new password>— change the join password for this sessiontime,dawn,noon,dusk,midnight— read or move the world clockexit— 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.
Common problems
Section titled “Common problems”- “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
.wldis 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.
