How to Setup a Terraria Server: Easy Step-by-Step Guide for All Players

Playing Terraria alone is a great way to unwind, but nothing beats exploring deep caverns, building sprawling bases, and taking down endgame bosses with a group of close friends. If you’ve ever been frustrated waiting for your group’s host to log on just to access your shared world, learning how to setup a terraria server is the perfect solution. It lets you keep your world running 24/7, customize game rules to match your group’s playstyle, and avoid the lag spikes that often come with peer-to-peer hosted lobbies. I’ve set up more than a dozen Terraria servers over the past 10 years for my own friend groups, ranging from small vanilla worlds for 4 players to large modded servers with 20+ active members, so I’ve worked out all the kinks to make the process as painless as possible.

What You Need Before You Learn How to Setup a Terraria Server

You don’t need fancy, expensive equipment to run a small server for a few friends, but there are a few core requirements you’ll need to check off before you get started. Minimum system requirements for a vanilla server for 1-8 players are pretty low: 2GB of RAM, a 2GHz dual-core CPU, and 1GB of free storage space for world saves. If you plan to run a modded server or host more than 8 players, you’ll need at least 4GB of RAM and a quad-core CPU to avoid lag.

Software and network prerequisites are also straightforward, and you probably already have most of them if you play Terraria regularly. You don’t even need to own a copy of Terraria to run the server, since the official server executable is available for free for all operating systems. I once spent 3 hours troubleshooting a connection issue that turned out to be just a typo in the port number I gave my friends, so double check all these details before you dive into setup.

  • Official Terraria server executable (available for free via Terraria’s official site or Steam’s Tools library if you own the game)
  • A host device (you can use your personal PC for small groups, or a cheap dedicated hosting service for 24/7 uptime without leaving your computer on)
  • Router admin access if you plan to let players outside your local Wi-Fi network join the server
  • Basic familiarity with your operating system’s file management and basic command line functions

Step-by-Step Setup for a Vanilla Terraria Server

Vanilla server setup takes less than 10 minutes for most users, even if you don’t have much technical experience. If you own Terraria on Steam, the fastest way to get the server files is to head to your Steam Library, toggle the filter to show “Tools”, and search for “Terraria Server” to install it like you would any other game. If you don’t use Steam, you can download the server files directly from the official Terraria website, no account required.

Once you run the server executable, you’ll see a command line window pop up that walks you through basic setup. First, you’ll be asked to select an existing world or create a new one. World size selection matters more than you might think: pick a small world for 1-4 players, medium for 5-8, and large for 9 or more players to avoid performance issues. Next, you’ll set the server port (the default 7777 works for most users) and an optional password to keep random players from joining your private world.

Once the server finishes booting up, it’s ready to use. If you’re playing with people on the same local network, they can join using your device’s local IP address. If you’re playing with people in other locations, you’ll need to set up port forwarding on your router to direct traffic on port 7777 to your host device, then share your public IP address with your friends. The first time you run the server, make sure you allow it through your Windows Defender or Mac firewall, as this is the most common reason for connection issues with new servers. Once you finish this process, you’ve completed the core steps to setup a Terraria server for vanilla play.

How to Set Up a Modded Terraria Server (tModLoader)

If you want to play with popular mods like Calamity, Thorium, or a collection of quality of life mods, you’ll need to use the tModLoader server tool instead of the vanilla server executable. Modded setups follow most of the same core rules as when you setup a Terraria server for vanilla play, with a few extra steps for mod management. The most important rule to remember is that every player joining your server must have the exact same mod list and mod versions installed, so make sure you share your full mod pack with your group before you launch the server.

First, download tModLoader from Steam for free, then install the tModLoader Dedicated Server tool from the Steam Tools library just like you would the vanilla server. Next, create a dedicated mods folder for your server, and upload all the .tmod mod files you want to use to that folder. You can enable or disable individual mods via the server config file, so you can tweak your mod list without having to re-upload files every time.

RAM allocation for modded servers is the most important step to avoid frequent crashes and lag. If you’re running a small mod pack with 10-20 quality of life mods, allocate 4GB of RAM to the server. If you’re running a large content mod like Calamity plus 30+ other mods, allocate at least 6GB of RAM, and 8GB if you have more than 8 players. You can adjust RAM allocation by editing the server’s launch parameters, and there are plenty of simple guides for this specific to your operating system. Don’t panic if your modded server takes 5-10 minutes to boot up the first time, this is normal for large mod packs.

Common Troubleshooting Tips for Your Terraria Server

Even if you follow every step perfectly, you might run into small issues the first time you run your server. The most common issue is friends being unable to connect. First, double check that you set up port forwarding correctly for both TCP and UDP traffic on your chosen port, and that you gave your friends the correct public IP address plus the port number (for example, 123.45.67.89:7777). If that doesn’t work, check if your internet service provider blocks port 7777, as some ISPs block common gaming ports to reduce network traffic. You can switch to a different port like 7778 if that’s the case.

If your server keeps crashing randomly, the fix depends on whether you’re running vanilla or modded. For vanilla servers, crashes are almost always caused by a corrupted world file, so you can restore from one of the automatic backup saves the server creates every few minutes. For modded servers, 90% of crashes are caused by conflicting mods or outdated mod versions, so try disabling mods one by one to find the culprit, and make sure all mods are updated to their latest stable versions.

Regular backup schedules are the easiest way to avoid losing hundreds of hours of progress if something goes wrong with your server. Set your server to auto-save every 10-15 minutes, and make a manual copy of your world file at least once a week to store on a separate drive. If you find that your server lags constantly even with strong hardware, you might need to switch to a dedicated hosting service, as most home internet connections don’t have enough upload speed to support more than 5-6 players at once.

Setting up your own server can feel intimidating at first, but once you work through the steps once, you’ll be able to spin up new worlds for your friend group in 10 minutes or less. Learning how to setup a terraria server opens up so many more possibilities for your playthroughs, from custom rule sets that disable enemy spawns during build sessions to massive modded playthroughs that last for months. If you don’t want to deal with port forwarding and leaving your computer on 24/7, you can always use a third-party Terraria hosting service for a few dollars a month, which handles all the technical work for you. No matter which route you take, you’ll end up with a persistent world that all your friends can access whenever they want, no more waiting for the host to log on to keep playing.