If you’ve ever been mid-Hardmode boss fight with friends and had your host lose internet connection mid-battle, you know how frustrating it can be to lose progress to a flaky peer-to-peer game. Running your own dedicated server fixes almost all of those issues, and it’s way simpler than you might think. This guide breaks down every part of how to make a server Terraria players of all skill levels can set up and run, no advanced coding experience required. We’ll cover everything from basic vanilla setup to modded support, performance tweaks, and fixing the most common errors that pop up during setup.
How to Make a Terraria Server: Core Pre-Setup Checks
Before you start downloading files or adjusting router settings, it’s worth making sure you have everything you need to run a stable server. You don’t need a high-end rig for small groups, but cutting corners on these basics will lead to lag, crashes, and lost save files down the line. I used to try to run servers off my old 8GB RAM gaming laptop when I was in college, and it worked fine for 4 of us as long as I closed all other background apps first. If you only play with a small group, you don’t need a fancy expensive server rig to get started.
The core requirements for a stable server are:
- A device you can leave running during play sessions, even if you’re not joining the game yourself
- Admin access to your home network to adjust port forwarding settings (or a third-party hosting service if you want to skip this step)
- The latest version of Terraria installed, or the mod loader you plan to use for modded play
- A static IP address for your host device, or a dynamic DNS service if your public IP changes regularly
You’ll also want to make sure your hardware meets basic performance thresholds. Minimum 2GB of RAM for vanilla servers supporting up to 8 players is the sweet spot, and you’ll want to add 1GB of extra RAM for every 4 additional players. Upload speed of at least 1Mbps per connected player is also non-negotiable, since the server has to send game data to every player in real time. If your home internet has slow upload speeds, you might be better off using a low-cost third-party hosting service instead of self-hosting.
Step-by-Step Vanilla Terraria Server Setup
Vanilla server setup only takes 10 to 15 minutes if you already have Terraria installed via Steam. First, open your Steam library, right click on Terraria, select “Manage”, then “Browse local files” to open your game folder. You’ll see a file called “TerrariaServer.exe” for Windows, or the equivalent server file for macOS and Linux. Run that file to launch the server configuration tool.
You’ll be prompted to choose a world to use, or create a new one specifically for your server. You can adjust settings like maximum player count, server password, PvP rules, and whether to enable friendly fire during this step. Port 7777 is the default for Terraria servers, but you can change it in the server config file if you have other services using that port. Once you save your settings, the server will launch and start running in the background.
Next, you’ll need to set up port forwarding on your router to let friends outside your local network connect to your server. Every router has a slightly different menu for this, but you’ll need to forward port 7777 to the local IP address of the device running your server. Always test your connection locally first before asking friends to join, to rule out network configuration errors. You can do this by opening Terraria on the same device as the server, selecting “Multiplayer”, then “Join via IP” and typing “localhost” as the address. If you can connect that way, your server is running properly.
Once you’ve finished these steps, you’ll have a fully functional dedicated server ready for play, no more relying on peer-to-peer connections that drop out when the host’s internet glitches. This is the most reliable way to run long-term playthroughs, and it’s far more stable than the built-in host and play option if you’re wondering how to make a server Terraria players can join whenever they want. Just share your public IP address and server password with your friends, and they’ll be able to join whenever the server is running.
Setting Up a Modded Terraria Server for Custom Play
If you want to run a server with mods like Calamity, Thorium, or any of the hundreds of popular community mods, you’ll use tModLoader instead of the vanilla server file. tModLoader is available for free on Steam, and it’s the official modding tool supported by the Terraria dev team, so you don’t have to worry about sketchy third-party downloads.
The setup process is almost identical to vanilla, but you have to make sure every player joining your server has the exact same mod versions installed as the server, otherwise they won’t be able to connect. I usually share a mod pack zip file with my friends before we start a new modded playthrough to avoid mismatches that waste time troubleshooting. Modded servers require at least 4GB of RAM minimum, even for small groups, to handle extra assets and mod mechanics. I run a Calamity mod server for 6 friends, and I allocated 6GB of RAM to it to stop lag during boss fights with hundreds of projectiles on screen.
You can adjust how much RAM the server uses by editing the server launch script in your tModLoader folder. If you notice stuttering when large events happen, bumping up the allocated RAM usually fixes the issue right away. Create a separate world folder for your modded server to avoid overwriting your vanilla single-player saves, since modded worlds won’t load properly in the vanilla version of the game. You should also back up your world file at least once a week, since mod updates can sometimes corrupt save files if you don’t update them in the right order.
Common Terraria Server Issues and Quick Fixes
Even if you follow every step perfectly, you’ll probably run into a few small issues when you first launch your server. Most of these have simple fixes that only take a minute to test, so you don’t have to scrap your entire setup if something goes wrong.
If friends can’t connect to your server at all, the first thing to check is your firewall settings. Most default Windows and macOS firewalls block incoming connections to the Terraria server by default, so you’ll need to add an exception for the server file in your firewall settings. If that doesn’t work, double check that your port forwarding settings are pointing to the correct local IP address for your host device. If you’re having trouble with port forwarding, most modern routers have a dedicated port forwarding menu in their admin dashboard, usually accessible by typing 192.168.1.1 into your browser address bar.
If you’re dealing with constant lag or rubber banding during play, there are a few quick fixes to test. First, close any background apps on the host device that are using up RAM or internet bandwidth, like streaming services or other game launchers. For vanilla server lag, reducing the maximum number of spawned NPCs in the config file can drastically improve performance for lower-end host devices. If you’re running the server on the same device you’re playing on, cap your in-game frame rate to 60fps to reduce strain on your CPU. For modded servers, check if any of your installed mods have known compatibility issues, that’s the culprit 9 times out of 10 for random crashes and lag spikes.
Running your own server makes every Terraria playthrough feel more consistent and fun, no more losing progress when the host has to log off early. You don’t need to be a tech expert to get it right, even if you run into small issues during setup, the fixes are almost always simple to implement. Whether you’re planning a casual vanilla playthrough with 3 friends or a massive modded run with a full server of 16 players, the process of how to make a server Terraria fans will love is accessible to everyone. Test out small adjustments to your settings as you go to find the perfect setup for your group’s play style, and enjoy your lag-free co-op sessions.