How to Host a Terraria Server: Easy Step-by-Step Guide for Beginners

If you’ve ever joined a public Terraria lobby only to deal with random trolls destroying your base or constant lag mid-boss fight, you’ve probably thought about running your own private game. Learning how to host a Terraria server lets you set your own rules, play only with people you trust, and customize the experience exactly how you want. You don’t need advanced coding skills or expensive hardware to pull it off, either. This guide covers everything from casual vanilla play with 2 friends to large modded public servers, with tips to avoid the most common mistakes new hosts make.

What You Need Before You Start Hosting Your Terraria Server

The good news is most people already have everything they need to run a small Terraria server right at home. The requirements change a bit depending on if you’re running vanilla or modded, and how many players you plan to let join at once. A stable internet connection is non-negotiable, even for small lobbies, because slow upload speeds will make the game unplayable for everyone connected. You also don’t need to buy any extra software, since the official server tool comes free with every copy of Terraria.

  • A licensed copy of Terraria (no pirated versions work with official server software, and they put your device at risk of malware)
  • Minimum 2GB of free RAM for vanilla servers, 4GB+ for modded or lobbies with 8+ players
  • An upload speed of at least 1Mbps per connected player to avoid rubber-banding or lag during boss fights
  • Basic knowledge of your router settings if you plan to host locally for players outside your home Wi-Fi network

For context, I tried hosting a Calamity mod server for 6 friends on an old 2GB laptop a few years back, and it crashed every single time we reached the Moon Lord fight. If you’re running large mod packs, don’t skimp on RAM, even if you think you can get away with less. You can also opt for a paid dedicated host if you don’t want to leave your personal PC running 24/7 for public access.

How to Host a Vanilla Terraria Server in 10 Minutes or Less

Vanilla server setup is so simple you can have it running before your friends finish downloading the latest Terraria update. First, open your Steam library, right click on Terraria, select “Manage” then “Browse local files” to find the folder where your game is installed. Look for the file named TerrariaServer.exe and run it – you don’t need to download anything extra.

When you launch the file, you’ll see a menu asking you to select a world to host, or create a new one from scratch. Choose the max number of players (16 is the vanilla limit, but 8 is more stable for most home internet connections), set a password if you want the server to be private, and leave the default port 7777 unless you have other servers running on your network. Port forwarding steps vary by router brand, so if you want friends outside your home to join, look up a guide for your specific router model to open port 7777.

If you don’t want to mess with port forwarding for a casual 2-3 player game, you can use a free LAN tunneling tool instead. It’s way faster to set up, and you don’t have to change any router settings, just share a code with your friends so they can connect directly to your lobby. Just remember that if you turn off your PC or close the server window, everyone will get kicked immediately.

Modded Terraria Server Setup: Key Differences to Avoid Crashes

Modded servers work almost the same as vanilla ones, but there are a few extra steps you need to take to avoid constant crashes or connection errors. Most modded Terraria servers run on tModLoader, which is available for free on Steam for anyone who owns a copy of Terraria. You’ll need to install tModLoader first, then install all the mods you want to use on your server before you launch it.

The most important rule for modded servers is that every single player who joins has to have the exact same mod versions installed as the server. If one person has an older version of a mod or an extra mod no one else has, they won’t be able to connect at all. I always share a mod pack export with my friends a day before we plan to start a new playthrough, so everyone has time to get set up correctly. Allocate extra RAM to the tModLoader server before you launch it too – aim for 4GB for small mod packs, and 8GB or more for large packs like Calamity or Thorium.

You should also generate your modded world first before letting anyone join. Large world generation mods can take 10-15 minutes to load fully, and letting people connect during that process usually causes crashes or corrupted world files. It’s also a good idea to test the server by yourself for 10-15 minutes before sending the IP to your friends, to catch any mod conflicts early.

Common Terraria Server Hosting Issues and Quick Fixes

Even if you follow every step perfectly, you’ll probably run into a small issue or two when you first launch your server. The most common problem is friends being unable to connect, which almost always comes down to one of three issues. First, double check that your firewall isn’t blocking the Terraria server executable – you’ll get a pop-up asking for permission when you first run it, but sometimes Windows Firewall blocks it by default. Second, make sure you port forwarded correctly, and that you’re giving your friends your public IP address, not your local one. Third, confirm that everyone is running the same version of Terraria or tModLoader as the server.

If you’re dealing with constant lag, first close any bandwidth-heavy apps on the device hosting the server, like streaming software, torrent clients, or cloud backup tools running in the background. If lag only happens during boss fights or events with lots of NPCs, reduce the max number of players or turn off any visual mods that add extra effects to the game. For modded servers, check if any of your installed mods have known performance issues, and remove them if they’re not essential to your playthrough.

Regularly back up your world file no matter what type of server you’re running. Save a copy of the world file to a separate folder on your device every 2-3 days, so if your server crashes and corrupts the main file, you don’t lose 100+ hours of build progress and boss fights. I learned this the hard way when a power outage corrupted my first modded server world, and we had to start over from scratch.

You don’t need to be a tech expert to figure out how to host a Terraria server, even if you’ve never run a game server before. For casual play with a small group of friends, you can have a vanilla server up and running in less than 10 minutes, no extra cost required. For larger or modded lobbies, a little extra prep work to allocate RAM and share mod packs will save you hours of troubleshooting later. The best part of hosting your own server is getting to play Terraria exactly how you want, no random trolls or arbitrary lobby rules ruining your fun.