TABI CLOUD
Terraria

How to Set Up TShock on a Terraria Server

6 min read · Updated October 2026 · By Tabi Cloud

TShock is a server mod for Terraria that adds permissions, groups, bans, region protection, a REST API and plugin support. Players use a normal Terraria client, with no client mod required.

Install

  1. Make sure your server uses a TShock build made for your Terraria version. Version mismatches are the most common problem.
  2. Stop the server and upload the TShock files to the Files tab, or choose a TShock option if we offer one for your server.
  3. Start the server and open the Console tab. TShock creates a tshock folder with its config, logs and database.

First-run setup code

On first start TShock prints a setup code in the console. Until setup is finished, players who try to use admin commands are told to authenticate. To complete setup:

  1. Join the server in game.
  2. Type /setup followed by the code shown in the console.
  3. Register an account with /user add username password superadmin.
  4. Log in with /login username password.
  5. Disable the setup requirement by running /auth-verify in the console, or follow the on-screen prompt.

The exact prompts vary a little by version, so read the console output. Use a strong password.

Config files

The main settings are in tshock/config.json, including server port, max slots, spawn protection and ban options. Server settings such as world and port are also used from serverconfig.txt where supported. Edit files while the server is stopped, then restart.

Useful commands

Plugins

Plugins are DLL files placed in the ServerPlugins folder. Only use plugins built for your TShock version, and add them one at a time.

Common issues

Contact us on Discord for help.

Want your own server? Join our Discord and tell us the game. We set it up and send you the details. Need help with an error from this guide? Open a ticket there.

GET STARTED ON DISCORD

More guides

TerrariaHow to set up a Terraria server (vanilla and tModLoader)TerrariaHow to Run a tModLoader Server and Install ModsTerrariaTerraria serverconfig.txt Explained: Every Important Setting