Which VPS you need for a Terraria server: vanilla, TShock and tModLoader
The requirements for a Terraria server depend on what exactly you plan to play. A vanilla world for a group of friends will run on the most modest VPS, while a tModLoader pack of dozens of mods will eat several times more memory. All the options have one thing in common: the world is processed in a single thread, so a fast core matters more than the number of cores. Below is how to pick a configuration for your option and what to avoid.
Three server options
- Vanilla dedicated server: the official TerrariaServer, which ships with the game and is available as a separate download for Linux. Minimal settings: world size, password, number of players.
- TShock: a server add-on on top of the vanilla version. It adds permissions and groups, player registration, region protection, anti-cheat, world backups and plugins. It's the standard for public servers without mods.
- tModLoader: a separate modified version of the game for mods. It has its own dedicated server, and players also connect through tModLoader with the same set of mods.
Mind the versions: the client and the server must match. TShock and large mods come out for new game versions with a delay, so after a major Terraria update a public server sometimes stays on the previous version for weeks; warn your players about this in advance.
How much memory and which CPU
- 1–2 GB: a vanilla server or TShock on a small or medium world, up to 8–10 players.
- 2–4 GB: a large world, public TShock with plugins, light tModLoader packs.
- 4–8 GB: heavy tModLoader packs of large content mods and their add-ons, where each mod adds items, bosses and textures.
The listing starts at 2 GB: that is the lower bound at which both TShock and a small mod pack run without constant swapping. A larger world needs more memory and takes longer to load, so choose the size before creating it: it can't be changed for an existing world.
For the CPU, the guideline is 3 GHz or more per core. The load comes not from players as such but from events: invasions, crowds of mobs, liquids, large mechanism-driven farms. On a slow core this turns into stutters for everyone connected. The VPS with high CPU clock speeds selection helps you compare plans by clock speed. Two cores are enough: one for the world, the second for the system, saves and networking.
Installing on Linux
All three options run on Linux, so you don't need a Windows plan. tModLoader and TShock use .NET; tModLoader installs the right version itself the first time the server starts, while for TShock it's easier to install it from the distribution's repository. A few practical tips:
- Run the server as a separate user and through systemd or tmux, so that it survives a dropped SSH session and restarts after a crash.
- Create the world in advance and specify it in the config (
serverconfig.txtor the-worldparameter), otherwise the server will ask for settings in the console on every start. - For tModLoader, keep mods in sync with clients: the server can send them to players on connection, but it's better to pin the set and versions in advance.
- Set up copying of the world file and the player data folder to another server or storage. A world corrupted in a crash is the most common cause of lost progress.
The disk isn't critical for Terraria: a world file takes tens of megabytes, a mod pack from hundreds of megabytes to a couple of gigabytes. But NVMe speeds up loading a large world and autosaves, which on a slow disk cause brief hangs for all players. The autosave interval in TShock can be adjusted to find a balance between load and the risk of losing progress.
If you keep several games on one machine at once, it's more convenient to manage them through a panel. The requirements for such a setup are described on the VPS for Pterodactyl page.
Network, ports and location
The Terraria server listens on port 7777 and, unlike many games, works over TCP. This means that with packet loss players don't see teleporting but hangs followed by "catching up", so connection stability matters as much as ping. Pick a data centre close to most of your players: for players in Russia, for example, sites in Russia or nearby Europe (Finland, Germany, the Netherlands) work best. TShock has a REST API on a separate port: if you don't need it, disable it or close it with a firewall.
Public servers are sometimes attacked, and TShock with registration and permissions helps against bots and griefers. The requirements here are noticeably lower than for similar open-world games: compare with the VPS for Minecraft page if you are choosing which of the two servers to set up for your group.