Terraria Dedicated Server Hosting: Complete 2026 Guide

Terraria has been around since 2011 and shows no sign of slowing down. With over 44 million copies sold and a community that keeps producing new mods, texture packs, and adventure maps, it remains one of the most played sandbox games in the world. Running your own dedicated server lets you and your group explore, build, and fight bosses on a world that stays online around the clock, with full control over who joins and which rules apply.

This guide covers everything you need to host a Terraria server in 2026: hardware requirements, installing the vanilla server and TShock, configuring worlds and permissions, running mods through tModLoader, backups, performance tuning, and practical tips from real hosting experience. Whether you are setting up a small survival world for friends or a large community server with dozens of plugins, the steps below get you there.

Why host a dedicated Terraria server

Terraria has a built-in multiplayer option where one player hosts through their own game client. That works for a quick session, but it comes with real drawbacks. The world is only available while the host is playing. Performance depends on the host's computer and upload speed. There is no way to manage permissions, ban griefers while you are offline, or run server-side plugins.

A dedicated server solves all of that. The world runs independently of any player's game client. You get a persistent world that stays online 24 hours a day, stable performance that does not depend on a player's home internet connection, and the ability to install TShock for advanced administration. For any server that runs longer than a single afternoon, dedicated hosting is the practical choice.

Hardware requirements

Terraria is lighter on resources than most 3D games, but that does not mean it runs well on anything. The server is single-threaded for its core game loop, which means CPU clock speed matters more than core count. Memory requirements scale with world size, player count, and how far into the game the world has progressed. A world full of placed wires, active mechanisms, and endgame boss fights uses noticeably more resources than a fresh spawn.

Hardware guidance based on player count and world complexity.
ScenarioPlayersRAMCPU
Small world, casual play2 to 41 GB1 core, 3.5 GHz+
Medium world, active progression4 to 82 GB1 core, 4 GHz+
Large world, TShock + plugins8 to 162 to 4 GB2 cores, 4 GHz+
Large world, tModLoader + heavy mods8 to 164 to 6 GB2 cores, 4.5 GHz+
Community server, 16+ players16 to 324 to 8 GB2 cores, 4.5 GHz+

Storage is rarely the bottleneck. A Terraria world file is typically between 5 and 30 MB depending on the map size and how much has been explored. However, fast storage still matters for world saves and backups. NVMe drives ensure that autosaves complete in milliseconds rather than causing a brief freeze for connected players.

Installing the vanilla dedicated server

Re-Logic distributes the Terraria dedicated server as a standalone download. You do not need a Steam account or a copy of the game to run it. Download the server files from the official Terraria forums or the Terraria website. The archive contains builds for Windows, Linux, and macOS.

On a Linux VPS, the steps are straightforward:

  1. Download and extract the server archive to your chosen directory, for example /home/terraria/server.
  2. Make the Linux binary executable: chmod +x TerrariaServer.bin.x86_64.
  3. Create a serverconfig.txt file (covered in the next section) to define your world, port, password, and other settings.
  4. Start the server: ./TerrariaServer.bin.x86_64 -config serverconfig.txt.
  5. Use screen or tmux to keep the server running after you close your SSH session, or set up a systemd service for automatic restarts.

The server runs on port 7777 by default. Make sure your firewall allows TCP traffic on that port. If you are behind a NAT or using a cloud provider, configure port forwarding or security group rules accordingly.

Server configuration

The serverconfig.txt file controls how your server behaves. Here are the settings that matter most.

  • world: the full path to the world file. If the file does not exist, the server creates a new world on first launch.
  • autocreate: set to 1 (small), 2 (medium), or 3 (large) to auto-generate a new world if none exists at the specified path.
  • worldname: the name shown in the server browser and on join.
  • difficulty: 0 for Classic, 1 for Expert, 2 for Master, 3 for Journey. Expert and Master add tougher enemies and better loot. Journey gives players creative controls.
  • maxplayers: the player cap. Default is 8, maximum is 255, but practical limits depend on your hardware.
  • password: optional, but strongly recommended for any server that is not fully public.
  • secure: set to 1 to enable basic cheat detection. TShock provides far more robust anti-cheat, but this is better than nothing on a vanilla server.
  • port: defaults to 7777. Change it only if you run multiple servers on one machine or if your provider assigns a different port.

After editing the config, restart the server for changes to take effect. The server reads this file only at startup.

Installing TShock

TShock is the most widely used Terraria server wrapper. It replaces the vanilla server binary and adds permissions, groups, regions, anti-cheat, MySQL support, a REST API, and a plugin ecosystem. Nearly every serious Terraria community server runs TShock.

Installation is simple: download the latest TShock release from GitHub, extract it into your server directory (it overwrites the vanilla binary), and launch it the same way. On first run, TShock creates its configuration files and a SQLite database for users and permissions. You set up the initial admin account by following the on-screen instructions or by using the setup code printed to the console.

Key TShock features that matter for server hosting:

  • Groups and permissions: define what each player group can do. Guests might be restricted from placing dynamite, while trusted members get full building rights.
  • Regions: protect specific areas of the world from modification. Useful for spawn points, arenas, and community builds.
  • Anti-cheat: TShock detects and blocks common cheats like item duplication, damage modification, and teleport exploits.
  • Bans and kicks: manage players by character name, IP address, or UUID. Bans persist across server restarts.
  • REST API: query server status, player lists, and execute commands remotely. Useful for Discord bot integrations or web panels.

TShock plugins extend functionality further. Popular plugins include boss schedulers, economy systems, custom chat formatting, and anti-grief tools. Install plugins by dropping their DLL files into the ServerPlugins folder and restarting.

Running mods with tModLoader

tModLoader is the official modding framework for Terraria, available as a free standalone app on Steam. It lets you run content mods that add new items, enemies, biomes, and mechanics. Running a modded server requires that both the server and all connecting clients have the same mods installed.

To set up a tModLoader server:

  1. Install tModLoader via SteamCMD on your server: steamcmd +login anonymous +app_update 1281930 validate +quit.
  2. Enable the mods you want through the mod browser or by placing .tmod files in the mods directory.
  3. Generate or load a world with the mods active.
  4. Launch the dedicated server through tModLoader's server binary.

Modded servers use significantly more RAM than vanilla. A server with Calamity (one of the largest Terraria content mods) and a handful of quality-of-life mods can easily reach 4 to 6 GB of memory usage. Plan your hosting accordingly. Each additional content mod that adds items and NPCs increases both memory and CPU load.

Note that tModLoader and TShock are separate projects. You can run one or the other, and there are community builds that combine them, but the combination requires testing. For most modded servers, tModLoader on its own provides sufficient management tools through in-game commands and config files.

World management and backups

Terraria world files are small compared to most games, but losing one still means losing potentially hundreds of hours of collective play. Set up automated backups from day one.

A simple cron job that copies the world file every hour is effective:

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. Rotate old backups automatically to avoid filling your disk. On NVMe storage, even frequent backups complete instantly without affecting server performance.

Before major updates (game patches, new mods, TShock upgrades), create a manual backup. Terraria updates occasionally change the world format, and while Re-Logic has been excellent about backward compatibility, mods are less predictable.

If you run TShock with a MySQL or SQLite backend, back up the database file as well. It contains user accounts, permissions, bans, and region definitions. Losing it means rebuilding all your permission groups from scratch.

Port forwarding and firewall setup

Terraria uses TCP port 7777 by default. On a VPS or dedicated server, you typically need to:

  • Allow TCP 7777 (or your chosen port) in your OS firewall. On Ubuntu: sudo ufw allow 7777/tcp.
  • If your provider has a network-level firewall (security groups, network policies), open the same port there.
  • If you run TShock's REST API, open its port as well (default 7878), but only to trusted IPs.

Players connect by entering your server's IP address and port in the Terraria multiplayer menu. If you want a cleaner experience, set up a domain name (like play.yourdomain.com) with an A record pointing to your server IP. Players can use the domain instead of memorizing an IP address.

Performance tuning

Terraria servers rarely hit performance issues below 8 players on decent hardware. Once you scale beyond that, or when heavy mods and automation come into play, a few optimizations make a real difference.

  • Use a large world only if you need it. Large worlds contain more tiles that the server must track. If your group has 4 to 6 players, a medium world gives you plenty of space with less overhead.
  • Limit active wiring. Extensive wiring and logic gate circuits that run continuously create constant server-side calculations. A massive pixel art display powered by wires can drop the tick rate for everyone.
  • Schedule restarts. Even a well-optimized Terraria server benefits from a restart every 12 to 24 hours. It clears accumulated state and keeps things responsive.
  • Keep TShock and plugins updated. Older plugin versions sometimes have performance bugs that have been fixed in later releases.
  • Monitor with TShock commands. Use /stats and other diagnostic commands to keep an eye on memory usage and tick rate. If the tick rate drops below 60 consistently, something needs attention.

CPU clock speed is the single most important factor. Terraria's server loop is single-threaded: a faster clock gives you more headroom per tick. This is why processors like the AMD Ryzen 9 7950X, with boost clocks above 5 GHz, handle Terraria servers comfortably even under heavy load.

Anti-cheat and player management

Terraria's vanilla server has minimal anti-cheat. Players with modified clients can spawn items, deal impossible damage, or teleport freely. If you run a public or semi-public server, TShock is practically mandatory.

TShock's anti-cheat modules cover the most common exploits. Configure them in the TShock config files. Start with the defaults and tighten restrictions based on what your players actually encounter. Overly strict settings can cause false positives that frustrate legitimate players.

For player management, set up a clear group hierarchy: guests, members, moderators, admins. New players join as guests with limited permissions. After they prove they are not going to grief, promote them to members. Give moderator access only to people you trust to handle reports and enforce rules without abusing power.

TShock logs all commands and significant events to log files. Review these periodically, especially after grief reports. The logs include timestamps, player names, and the exact commands or actions taken, making it straightforward to identify who did what.

Hosting at HostValues

HostValues game server plans and VPS plans are both well suited for Terraria. All plans run on AMD Ryzen 9 7950X processors with NVMe storage and include DDoS protection at no extra cost. The high single-thread clock speeds are exactly what Terraria's server loop benefits from most.

For a vanilla server with up to 8 players, a 2 GB plan covers the basics. For TShock with plugins, start at 3 to 4 GB. For a tModLoader server with large content mods like Calamity, go with 4 to 6 GB and scale upward if your player count grows. Upgrading memory takes effect without rebuilding or losing your world.

If you prefer full control, a VPS gives you root access to install tModLoader via SteamCMD, run custom scripts, and configure everything to your exact specifications. The Terraria hosting page has all plan details and pricing.

Frequently asked questions

Can I transfer my singleplayer world to a dedicated server?

Yes. Copy your world file (the .wld file from your local Terraria saves folder) to the server's worlds directory and point the server config at it. The world works the same way on a dedicated server as it does in singleplayer. Back up both copies before you start, just in case.

How many players can a Terraria server handle?

The technical maximum is 255, but practical limits are much lower. Most servers run smoothly with 16 to 32 players on good hardware. Beyond 32, network synchronization and entity updates start to strain even fast CPUs. For large communities, consider multiple themed worlds rather than one server with 50 players.

Do players need to install mods manually for a tModLoader server?

Players need tModLoader installed (it is a free download on Steam), and they need to enable the same mods the server is running. tModLoader's in-game mod browser makes this straightforward: players search for the mod name, click download, and enable it. The server will reject connections from players who are missing required mods, so there is no risk of version mismatch causing issues silently.

For more hosting options, browse the full game server lineup or check Terraria hosting plans directly. If you need a VPS for full control, see HostValues VPS.


Still stuck? Open a support ticket and our team will help you out.

Back to the blog