Quick answer
- Create a server with the TShock type and start it once.
- Join, type
/setup <code>with the code from the Console, then/user add <name> <password> ownerand/login. - Protect spawn with
/region set 1,/region set 2,/region define spawnand/region protect spawn true.
First start: claim the server#
- 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.
- Find the setup code
Start the server. The Console prints a one-time setup code with instructions to type
/setup. - Claim owner
Join the server and run the commands below. After this, the setup code no longer works.
/setup 1234567
/user add YourName YourPassword owner
/login YourName YourPasswordGroups and permissions#
Players start in the default group; registered players go to guest or your chosen group. Useful commands:
/group add builder
/group addperm builder tshock.world.modify
/user group SomePlayer builder
/group listperm builderProtect spawn with a region#
/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 spawnEveryday admin commands#
| Command | What 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 day | Sets the time (day, night, noon, midnight). |
/item <name> [amount] | Gives you an item. |
/spawnrate <n> | Changes how often enemies spawn. |
/save | Saves 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.



