How to Make a Server for Terraria: Easy Step-by-Step Guide for Every Player

Playing Terraria with friends is one of the best ways to experience the game, but public servers often come with annoying trolls, unexpected lag, and arbitrary rules that ruin your fun. Learning how to make a server for Terraria fixes all these issues, and you don’t need advanced tech skills to pull it off. I’ve set up more than a dozen servers for my friend group over the past 8 years, for everything from casual vanilla playthroughs to heavy modded Calamity runs, and the process has only gotten simpler over time. This guide will walk you through every step, including common mistakes to avoid so you don’t lose hours of progress to a preventable error.

Pre-Requisites to Host a Terraria Server Without Issues

Before you dive into setup, there are a few basic things you need to have sorted first to avoid running into roadblocks halfway through. Most of these are things you probably already have, especially if you play Terraria regularly. You don't need a high-end gaming PC to host a small server for 2-4 friends; even an old laptop that can run basic apps will work fine for smaller groups.

  • A copy of Terraria (same version as all players who will join the server)
  • A stable internet connection with minimum 3 Mbps upload speed for up to 4 players, add 1 Mbps per extra player for smooth performance
  • Admin access to your router if you plan to let players join outside your local home network
  • Optional: Extra RAM (2GB+ above your system baseline) if you plan to run large mod packs like Calamity or Thorium

For players who want to host a server but don’t want to leave their personal PC running 24/7, you can also use a low-cost single-board computer like a Raspberry Pi to host, as long as you’re only running a vanilla server for a small group. Make sure all players are on the exact same game version as your server; even a minor patch difference will stop people from being able to join, and this is the most common issue I see new server hosts run into.

How to Make a Server for Terraria for Vanilla or Modded Gameplay

The setup process is almost identical for vanilla and modded servers, with just a couple of small differences for modded runs. First, for vanilla servers, navigate to your Terraria install folder (you can find this by right-clicking the game in your Steam library, selecting “Manage”, then “Browse local files”). Look for the file named TerrariaServer.exe and run it. You’ll see a command prompt window pop up with a list of existing worlds on your device, or the option to create a new one specifically for the server.

Select the world you want to use, then set your max player count (I recommend capping it at 8 for self-hosted servers, unless you have a very fast internet connection). Next, set the port (the default 7777 works fine for most people), then choose if you want to enable port forwarding for IPv6 (you can skip this unless you know your network uses it). You’ll then get the option to set a server password. Always set a strong password for your server to prevent random strangers from joining and ruining your world; I learned this the hard way when I forgot to set a password on a new server once, and a random player joined and blew up our base two hours into our playthrough.

For modded servers using tModLoader, the process is exactly the same, except you’ll run the tModLoader server executable instead of the base Terraria one. Just make sure every player who joins has the exact same mods, mod versions, and mod configs enabled as the server, or they won’t be able to connect. Once the server is running, you can join it yourself by launching Terraria, selecting “Multiplayer”, then “Join via IP”, and typing “localhost” as the IP address if you’re playing on the same device you’re using to host.

Common Server Setup Issues and How to Fix Them Fast

Even if you follow every step perfectly, you might run into a couple of common issues when you first launch your server. The most frequent complaint I get from new hosts is that their friends can’t connect to the server. If this happens, first double check that you set up port forwarding correctly on your router for port 7777, pointing to the local IP address of the device you’re using to host the server. If port forwarding is set up right, check that your computer’s firewall isn’t blocking the Terraria server from accessing the internet; you can add an exception for the server executable in your firewall settings to fix this.

If you’re running into lag during play, there are a few quick fixes you can try. First, close any background apps on the host device that are using up internet bandwidth, like streaming services or large file downloads. If you’re hosting and playing on the same device, lower your in-game graphics settings a bit to free up RAM for the server. For modded servers, try disabling any cosmetic mods that add a lot of extra particle effects or world generation changes, as these are the biggest causes of lag for modded runs.

The worst issue you can run into is world corruption, where your server world file gets damaged and becomes unplayable. Backing up your world file is the single most important step to avoid losing dozens of hours of playtime. I copy my server world file to a separate folder on my device after every play session, and I set up automatic backups every hour for servers that run 24/7. If your world does get corrupted, you can just load the most recent backup and pick up right where you left off, with almost no progress lost.

Simple Ways to Customize Your Terraria Server for Better Gameplay

One of the best parts of hosting your own server is that you have full control over every part of the gameplay experience, so you can tweak it to fit exactly what your group wants. You can adjust most basic settings when you first launch the server, like difficulty level, spawn protection radius, and whether PvP is enabled by default. For casual groups with new players, I recommend turning off spawn protection entirely and setting PvP to optional, so new players don’t get ganked right after spawning if they don’t want to fight.

You can adjust most server settings on the fly without restarting the entire server if you use the in-game admin console. As the server host, you can enter commands to kick toxic players, ban people who cause trouble, give items to players who lose their gear to a glitch, or even teleport players across the map if they get lost. For modded servers, you can adjust mod configs directly through the server console to make bosses easier or harder, adjust resource spawn rates, or add custom gameplay rules that fit your group’s playstyle.

If you want to make your server feel more unique, you can add custom welcome messages for new players, set up warp points to popular locations across the map, or even create custom events for your group, like weekly boss fights or building contests. You don’t need any extra mods to add most of these customizations; all of these features are built into the default Terraria server console, you just need to learn the basic commands to use them.

Once you get your server up and running, you’ll wonder why you ever wasted time on public servers in the first place. Knowing how to make a server for Terraria gives you full control over your playthrough, so you can play exactly the way you want to with the people you want to play with. The entire setup process takes less than 10 minutes for a basic vanilla server, and even modded servers only take a few extra steps to get right. If you don’t want to leave your personal PC running all the time, you can always switch to a low-cost third-party hosting service later, but for most small friend groups, self-hosting works perfectly well for free.