Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Terraria Server Requirements: RAM, CPU & Hosting

· 6 min read · Home Tech

In this article
  1. How Terraria Server Hosting Works
  2. Minimum and Recommended Specs
  3. CPU: The Bottleneck
  4. RAM: More Than You Think
  5. Hosting Options Compared
  6. Common Problems and Fixes
  7. Costs and Budgeting
  8. Safety and Security
  9. Frequently Asked Questions

Terraria server requirements are modest: a single-core CPU running at 2.0 GHz or faster and 1 GB of RAM are enough for a small group of players, though 2–4 GB of RAM and a modern multi-core processor are recommended for larger worlds or 8+ players. The game is more CPU-bound than RAM-bound, so the processor speed and the number of active players matter far more than total memory.

How Terraria Server Hosting Works

When you host a Terraria server, you run a separate executable (TerrariaServer.exe on Windows, or the terraria-server package on Linux) that simulates the game world independently of any client. Players connect to it over the network, and the server sends them world state updates. The server does not render graphics—that is done by each player's client—so the server's workload is almost entirely CPU, network I/O, and memory for storing the world and entity data.

The default server supports up to 8 players in the configuration file (maxplayers=8), but you can raise it to 16 or even 255 with mods or edits. Every additional player increases CPU load because the server must process their actions, NPC AI, and world events. The world size also matters: a Large world (8400×2400 tiles) requires more RAM and CPU than a Small world (4200×1200) because more chunks are loaded and tracked.

Terraria's official server requirements are quite low, but real-world performance depends on your player count and world size. Here is a practical breakdown:

  • Minimum (2–4 players, Small world): 1 CPU core at 2.0 GHz, 1 GB RAM, 100 Mbps network.
  • Recommended (8 players, Medium world): 2 CPU cores at 2.5 GHz, 2 GB RAM, 200 Mbps network.
  • Heavy use (16+ players, Large world, mods): 4 CPU cores at 3.0+ GHz, 4 GB RAM, 500 Mbps network.

These numbers assume the server is dedicated—nothing else running on the machine. If you are hosting on the same PC you play on, add the client's own requirements (2 GB RAM, a GPU) to the totals.

CPU: The Bottleneck

Terraria's server is single-threaded in most of its core logic. That means a fast single core is more valuable than many cores. A CPU with a high clock speed (3.5 GHz or more) will handle 8 players more smoothly than a slower multi-core server CPU. When you rent a VPS or dedicated server, look for one with a high single-core passmark score, not just a high core count.

If you see lag spikes that correlate with many enemies or events (like the Goblin Army), the CPU is likely the cause. The server processes all NPC AI every tick (60 ticks per second), so a busy world with many enemies can saturate a single core.

RAM: More Than You Think

The official minimum is 1 GB, but that is for a bare-bones server with no world generation and few players. In practice, a Medium world with 8 players can use 1.5–2 GB of RAM, especially after hours of play when the world has many placed items, chests, and modified terrain. Mods like tModLoader can push memory usage to 3–4 GB.

RAM is also used for the world file cache and for player data. If the server runs out of memory, it will crash or start swapping, causing severe lag. Always leave at least 500 MB of headroom above your estimated usage.

Hosting Options Compared

You have three main ways to host a Terraria server:

  • Self-host on your own PC: Free, but requires a stable internet connection with a public IP or port forwarding. Your upload speed matters—each player uses about 10–20 Mbps, so 8 players need 80–160 Mbps upload.
  • VPS (Virtual Private Server): A cheap VPS (2 vCPU, 4 GB RAM) for around $10–20/month works well. You get a dedicated IP and 24/7 uptime, but you must set up the server software yourself.
  • Game server provider: Services like Apex Hosting or BisectHosting offer one-click Terraria servers. They cost more ($10–30/month) but handle setup, backups, and DDoS protection. You get a control panel and automatic mod installation.

For a small group of friends, self-hosting is usually fine. For a public server with many players, a VPS or provider is more reliable.

Common Problems and Fixes

Players often report lag or connection issues that are not actually server hardware problems. Here are the most common:

  • Port forwarding not working: The server listens on port 7777 by default. You must forward that TCP/UDP port on your router to the server's local IP. Many routers require a static IP lease for the server PC.
  • Firewall blocking: Windows Defender Firewall or third-party security software can block the server. Add an inbound rule for TCP/UDP 7777.
  • Upload bandwidth insufficient: If players experience rubber-banding, check your upload speed. A typical 10 Mbps upload can handle only 1–2 players.
  • CPU overheating or throttling: On a dedicated VPS, CPU throttling can occur if the host oversells. Run a stress test to see if performance drops over time.

Costs and Budgeting

Self-hosting costs nothing beyond your electricity and internet. A VPS costs $5–20/month depending on specs. Game server providers charge $10–30/month, often with a discount for prepaying. If you are playing with 4–6 friends, a $10 VPS with 2 vCPU and 4 GB RAM is usually enough. For 16+ players, budget $20–30/month for a 4 vCPU, 8 GB RAM plan.

Remember that CPU speed matters more than core count, so compare single-thread performance before buying. Many VPS providers list “vCPU” which is a shared core—read reviews to see if the host throttles.

Safety and Security

Running a public server exposes you to malicious players. Always set a server password in serverconfig.txt. Keep backups of your world files regularly—the server can crash and corrupt the world if it is killed abruptly. On a VPS, use a firewall to restrict access to port 7777 only. Do not run the server as root/admin; create a dedicated user with limited permissions. If you use mods, download them only from the official tModLoader workshop to avoid malware.

Frequently Asked Questions

How much RAM does a Terraria server need for 8 players?

2 GB is a safe minimum for 8 players on a Medium world. If you run mods or a Large world, go with 4 GB. The server will use less if the world is small and players are spread out, but it is better to over-allocate than to crash mid-game.

Can I run a Terraria server on a Raspberry Pi?

Yes, a Raspberry Pi 4 or 5 with 4 GB RAM can host a small server (2–4 players) using the Linux version of Terraria. The CPU is ARM-based and slower than a typical x86 core, so you may see lag with more players or during events. It is a fun low-power project, but not ideal for serious multiplayer.

Does Terraria server use multiple CPU cores?

Most of the server logic runs on a single thread, so it effectively uses one core. However, the operating system and network handling may use a second core. For best performance, choose a CPU with a high clock speed over one with many cores.

What is the difference between a VPS and a game server provider?

A VPS gives you full control—you install and manage the server yourself. A game server provider offers a pre-configured panel, automatic updates, and support, but you pay more for the convenience. If you are comfortable with command lines, a VPS is cheaper and more flexible.

Why does my Terraria server lag even with good specs?

Lag can come from network issues (low upload speed, high ping), not hardware. Check your internet speed and the distance between players. Also, the server tick rate is fixed at 60 per second; if the CPU cannot keep up, the game slows down. Use the settle command or reduce the world size to lighten the load.

Can I host a Terraria server for free?

Yes, you can host on your own PC for free, as long as your internet can handle the upload traffic. Free hosting services exist but often have limits on players or uptime. For a reliable free option, self-hosting is the best bet.