Free hosting
Minecraft JavaMinecraft BedrockPaperMCFabricForgeGeyserMCTerrariaFactorioHytaleDiscord botsRLCraftCobblemonBetter MCCreate
Go premium

No hibernation, no timers, 5 GHz CPUs and up to 32 GB RAM.

From €1.99/month →
Tools & help
RAM calculatorMOTD generatorServer status checkerserver.properties generatorColor codesGuidesDiscord community
Language
EnglishNederlandsEspañolFrançaisDeutschItalianoPortuguêsLatviešuPolskiSuomiNorskRomânăPortuguês (BR)Türkçeहिन्दी
Start free
Terraria · TShock

TShock Setup and Commands: Run Your Terraria Server Like an Admin

TShock adds accounts, permissions, anti-grief regions and moderation tools to a normal Terraria server. This guide gets you from first start to a protected spawn.

FreeGameHost logo FreeGameHost Guides Updated 7 min read

Quick answer

  1. Create a server with the TShock type and start it once.
  2. Join, type /setup <code> with the code from the Console, then /user add <name> <password> owner and /login.
  3. Protect spawn with /region set 1, /region set 2, /region define spawn and /region protect spawn true.

First start: claim the server#

  1. Create a TShock server

    On free Terraria hosting, choose the TShock type (TShock 6 and newer). Set the world name, size and max players on the Startup page.

  2. Find the setup code

    Start the server. The Console prints a one-time setup code with instructions to type /setup.

  3. Claim owner

    Join the server and run the commands below. After this, the setup code no longer works.

In-game chat
/setup 1234567
/user add YourName YourPassword owner
/login YourName YourPassword

Groups and permissions#

Players start in the default group; registered players go to guest or your chosen group. Useful commands:

Groups
/group add builder
/group addperm builder tshock.world.modify
/user group SomePlayer builder
/group listperm builder

Protect spawn with a region#

Regions
/region set 1      (then hit a block at one corner)
/region set 2      (then the opposite corner)
/region define spawn
/region protect spawn true
/region allow FriendName spawn
Free TShock serverTShock 6+, 2 GB RAM and SFTP. Live in minutes.
Create a Terraria server

Everyday admin commands#

CommandWhat it does
/kick <player> [reason]Removes a player.
/ban add <player> [reason]Bans a player; /ban del removes the ban.
/tp <player>Teleports you to a player.
/time daySets the time (day, night, noon, midnight).
/item <name> [amount]Gives you an item.
/spawnrate <n>Changes how often enemies spawn.
/saveSaves the world now.
/whitelist add <ip>Adds an IP when the whitelist is on in the config.

Config files#

TShock keeps its settings in the tshock folder. config.json holds the server password, spawn protection radius and whitelist switch; sscconfig.json turns on server-side characters so inventories live on the server. Edit them in the file manager, then restart.

TShock is for the normal game. If you want Calamity or other mods, use the tModLoader type instead: see how to make a Calamity server.

Free servers run on a timer: each click on Renew adds 12 hours, up to 48 hours stored, as often as you like. Terraria servers don't sleep, so they keep running while the timer lasts.

Related: Best Terraria mods in 2026  •  How much RAM does a game server need?  •  What is a dedicated game server?

Frequently asked questions#

Where do I find the TShock setup code?

In the server Console right after the first start. It is printed with the instruction to type /setup in game.

How do I give someone admin?

Create an account for them with /user add name password admin, or move an existing user with /user group name admin.

Which TShock versions can I run?

TShock 6 and newer. Use the Version Changer in the panel to switch versions; your worlds are kept.