Running a Terraria dedicated server gives your group a world that stays online around the clock, with full control over permissions, mods, and who gets to join. Whether you plan to set up a small survival server for friends or a large community hub with dozens of plugins, this guide walks you through every step: from picking the right hardware to installing TShock, configuring worlds, managing mods, and squeezing out the best performance in 2026.
Dedicated hosting vs. in-game hosting
Terraria lets a player host directly from their game client, and for a quick afternoon session with two or three people that works. The moment you want the world to stay up while you are asleep, or when a sixth player wants to join and the host's upload speed cannot keep up, you hit the wall. A dedicated server decouples the world from any player's machine. It stays online 24/7, runs at a consistent tick rate regardless of the host's hardware, and gives you access to server-side tools like TShock for permissions, anti-cheat, and player management.
The cost is modest. Terraria is one of the lighter games to host. A 2 GB plan handles a vanilla server with up to eight players, and even heavily modded setups rarely need more than 6 GB. That makes it an ideal first server for anyone new to game hosting.
Choosing your hosting approach
You have three main options for dedicated Terraria hosting:
- Managed game server hosting. A provider like HostValues gives you a pre-configured panel where you install TShock or tModLoader in a few clicks, manage files, schedule restarts, and monitor resources. No Linux knowledge required.
- VPS with full root access. A VPS gives you a blank Linux machine. You install everything yourself: the Terraria binary, TShock, mods, firewall rules, backup scripts. More control, more responsibility.
- Self-hosted on your own hardware. Possible, but your world goes down when your power or internet does, and opening ports on a home connection exposes your network. For anything beyond occasional use, rented hosting is the practical choice.
Hardware requirements for 2026
Terraria's server loop is single-threaded. Clock speed matters more than core count. Memory scales with world size, player count, and how much wiring and automation the world contains. Here is what to budget:
| Setup | Players | RAM | Notes |
|---|---|---|---|
| Vanilla, small world | 2 to 4 | 1 GB | Minimal; no mods or plugins |
| TShock, medium world | 4 to 8 | 2 GB | Plugins add light overhead |
| TShock, large world | 8 to 16 | 3 to 4 GB | Regions, economy, anti-cheat |
| tModLoader + Calamity | 4 to 10 | 4 to 6 GB | Heavy content mods spike memory |
| Large community server | 16 to 32 | 6 to 8 GB | Multiple plugins, active builds |
Storage is rarely the bottleneck. A Terraria world file sits between 5 and 30 MB. NVMe storage ensures autosaves complete instantly without freezing connected players.
Installing TShock step by step
TShock is the standard server wrapper for Terraria. It replaces the vanilla server binary and adds permissions, groups, protected regions, anti-cheat, a REST API, and a plugin ecosystem. Nearly every serious community server uses it.
- Download the latest TShock 5.x release from the TShock GitHub repository.
- Extract the archive into your server directory. It overwrites the vanilla server files.
- On Linux, make the binary executable:
chmod +x TShock.Server. - Launch TShock:
./TShock.Server -config serverconfig.txt. - On first start, TShock creates its config files and prints a setup code. Join the server in-game and enter
/setup <code>to claim the admin account.
From there, configure groups and permissions in tshock/config.json. A common setup: guests can move and chat, members can build, moderators can kick and ban, admins have full control. TShock logs every command, making it easy to audit who did what after a grief report.
Setting up tModLoader for modded play
tModLoader is Terraria's official modding framework. It is free on Steam and supports content mods that add biomes, bosses, items, and mechanics. Running a modded server requires that every connecting client has the same mods enabled.
Install tModLoader on a VPS via SteamCMD:
steamcmd +login anonymous +app_update 1281930 validate +quit
Enable mods through the mod browser or by placing .tmod files in the mods directory. Generate a fresh world with the mods active, then start the dedicated server binary. Players install the same mods through tModLoader's in-game browser. The server rejects anyone with mismatched mods, so there is no silent desync.
Popular mod packs in 2026 include Calamity (massive content expansion), Thorium (new classes and bosses), and Fargo's Mutant Mod (quality-of-life overhaul). Calamity alone pushes memory requirements to 4 to 6 GB. Stack multiple content mods and plan for even more.
World configuration and difficulty
The serverconfig.txt file controls the fundamentals. The settings that matter most:
- autocreate: 1 (small), 2 (medium), or 3 (large). Medium is the sweet spot for most groups of four to ten players.
- difficulty: 0 Classic, 1 Expert, 2 Master, 3 Journey. Expert is the most popular for experienced groups because it adds tougher bosses and better loot without the punishing Master mode deaths.
- maxplayers: set this to slightly above your expected peak. Leaving it at the default 8 locks out the ninth friend who wants to try the server.
- password: always set one unless the server is intentionally public. Griefers scan for open Terraria servers.
- secure: set to 1 for basic cheat detection. TShock provides far more robust protection, but on a vanilla server this is better than nothing.
For world seeds, the Terraria community maintains lists of seeds with desirable features: central spawn dungeons, easily accessible biomes, or early-game loot. Sharing a specific seed with your players lets them plan routes before joining.
Performance tuning
Terraria servers rarely struggle below eight players on modern hardware. Beyond that, or with heavy mods and wiring, these optimizations help:
- Match world size to your group. A large world tracks millions of tiles the server must manage. If your group has four to six players, a medium world offers plenty of space with less overhead.
- Limit active wiring circuits. Continuously running logic gates and pixel displays create constant server-side calculations. A complex wiring build can tank the tick rate for everyone.
- Schedule regular restarts. A restart every 12 to 24 hours clears accumulated state and keeps performance consistent. Automate this with a cron job or the game panel's scheduler.
- Update TShock and plugins. Older versions sometimes contain performance regressions that newer releases fix.
- Monitor the tick rate. Use TShock's
/statscommand. A healthy server maintains 60 ticks per second. Consistent drops below that indicate a bottleneck.
CPU clock speed is the single most important factor. The Ryzen 9 7950X processors used by HostValues boost above 5 GHz, which gives Terraria's single-threaded loop substantial headroom.
Backups and world safety
A Terraria world file is small, but losing it means losing hundreds of hours of collective play. Automate backups from day one:
0 * * * * cp /home/terraria/worlds/MyWorld.wld /home/terraria/backups/MyWorld_$(date +\%Y\%m\%d_\%H\%M).wld
Keep at least 48 hours of hourly backups and 7 days of daily snapshots. Before major updates or mod changes, take a manual backup. If you use TShock, back up its SQLite database as well; it stores user accounts, permissions, bans, and region definitions.
Frequently asked questions
Can I run TShock and tModLoader together?
There are community builds that combine TShock with tModLoader, but compatibility depends on the specific versions. For most modded servers, tModLoader's built-in server commands and config options provide enough management. If you need TShock's advanced permissions on a modded server, test the combined build thoroughly in a staging environment before going live.
How do I transfer a singleplayer world to a dedicated server?
Copy the .wld file from your local Terraria saves folder to the server's worlds directory and point the serverconfig.txt at it. The world works identically on a dedicated server. Back up both copies before starting.
What port does Terraria use?
TCP port 7777 by default. Make sure your firewall allows traffic on that port. If you run TShock's REST API, its default port is 7878, which should only be open to trusted IPs.
Why HostValues?
All Terraria hosting plans run on AMD Ryzen 9 7950X processors with NVMe storage and DDoS protection included. Install TShock or tModLoader from the panel, scale memory without losing your world, and pick from six server locations across Europe and North America. Plans start at 2 GB for vanilla and go up to handle the heaviest modded setups. See Terraria hosting plans or grab a VPS for full root control.