5 steps to launch your first Terraria dedicated server

Terraria is a sandbox adventure game that offers an expansive world where multiple players can connect and play together. But, while joining someone else’s game through the host & play option is convenient, it often comes with limitations, such as lag and stability issues, especially as more players join the fun.

That’s why you should opt for hosting Terraria on a dedicated server instead. It allows you to host your own game on a separate machine that is optimized for performance. Unlike the host & play method, where one player’s system bears the weight of the server, a dedicated server runs independently, offering advantages such as:

So, without further ado, let’s get right into it and walk you through setting up your own Terraria dedicated server.

Just want to jump in?

Get your own, private sandbox so you can explore, craft, build, and take down bosses on your own terms.

Step 0: Prerequisites and choosing a Terraria dedicated server provider

Before you do anything, it’s important to ensure you have all the prerequisites in place to successfully launch your Terraria dedicated server. Here’s what you’ll need:

A dedicated server via a hosting provider

A dedicated server is a physical or virtual machine entirely used to host your Terraria server, unlike shared hosting, where multiple users share resources. Choosing the right hosting provider is crucial for your Terraria server’s performance. Consider factors like server reliability, ease of use, and customer support. 

Hardware requirements

The recommended hardware requirements for a smooth Terraria experience, especially with larger worlds or more players (10+), are:

It’s worth noting that Terraria server software primarily utilizes a single core/thread, making CPU clock speed particularly crucial. Servers with clock speeds below 3 GHz may experience issues like teleporting enemies and item pickup lag.

Operating system

Some providers offer a choice between Windows and Linux-based servers. While either can run Terraria effectively, Linux is often more resource-efficient for dedicated server purposes.

The runtime environment requires:

Many hosting providers pre-install these dependencies, but it’s worth confirming before selection.

Step 1: Download and install server files

If you’ve purchased Terraria via Steam, you can easily download the dedicated server files directly from the Steam client. Here’s how:

Steam will automatically download and install the server files for you. These files will be placed in a folder in your Steam directory, typically located at C:\Program Files (x86)\Steam\steamapps\common\Terraria.

If you don’t use Steam or are running a Linux server, you can still download the server files directly from Terraria’s official website. Then, extract the files to a folder of your choice where you want the server to run from.

Once the server files are downloaded:

Once the files are in place, it’s time to start the server. For Windows users, you can launch the server by double-clicking the .exe file (typically called TerrariaServer.exe). This will open up a command prompt window that runs the server.

For Linux, you’ll start the server via terminal using a command like:

./TerrariaServer.bin.x86_64

Or, for 32-bit systems:

./TerrariaServer.bin.x86

Make sure the file is executable by running:

chmod +x TerrariaServer.bin.x86_64

This is the most straightforward method for Linux servers.

This initial run will generate configuration files and set up a default world for the server. You’ll be prompted to create a new world or load an existing one, as well as set up some basic settings like server name and password.

Step 2: Configure server settings

When you run the Terraria server for the first time, several configuration files will be generated. These files are where you can make all your adjustments. 

The main configuration file is called serverconfig.txt. This file contains various settings such as the server’s name, password, and world settings. You can edit this file using a simple text editor like Notepad++ (Windows) or Nano (Linux).

If you’re creating a new world, you can adjust the world’s settings directly from the server interface. If you’re using an existing world, the settings are automatically pulled from that world’s configuration file.

Here are some important settings you may want to adjust in the serverconfig.txt file:

For more advanced players, you may want to customize additional settings, such as enabling or disabling mods, changing server rules, or modifying the game difficulty. There are various server-side mods available that can enhance the experience, such as adding custom items or changing game mechanics. You can modify these by editing the mods directory or by using tools like the Terraria ModLoader (TModLoader).

Once you’ve made your changes in the configuration file, be sure to save the file before restarting the server. If you made the changes through the server console, you might need to restart the server for the new settings to take effect.

Step 3: Port forwarding and firewall configuration

Port forwarding is a process that tells your router how to direct incoming internet traffic to the correct device (in this case, your Terraria server) on your local network. Without proper port forwarding, players outside your local network will be unable to connect to your server.

By default, Terraria uses port 7777 for communication. You’ll need to forward this port to your server’s internal IP address – here’s how:

Then, it’s time to ensure that your firewall allows incoming traffic to the server on port 7777. For a Windows firewall:

Linux firewall:

Step 4: Launch the server

This is the exciting part where you’ll open the server to players and begin hosting your own world:

When the server window opens, you’ll be prompted to either Create a New World or Load an Existing World. If you’re creating a new world, you’ll be asked to choose the world’s size (Small, Medium, or Large) and type (Corruption or Crimson).

You’ll also be prompted to set a server name, password, and max players. Once you’ve made all your selections, press Enter to start the server. The server will load the world, and players will now be able to connect.

Now that the server is running, you’ll want to ensure it stays active and accessible to players:

As the server is running, you can manage it directly through the command window. The server console will display useful information, such as connected players, server performance, and any errors that occur.

(Bonus) Here are common server commands:

You can also monitor the server’s performance and make adjustments as needed, such as tweaking server settings or adding new mods.

Step 5: Connect to the server

Now that your Terraria dedicated server is running smoothly, it’s time to join in on the action and connect to your server. Whether you’re the host or a player joining someone else’s server, the process is simple:

Connecting to your own server (local connection)

If you’re hosting the server on the same machine that you’re playing on (local connection):

You should be in the world in just a few moments!

Connecting from an external network (public connection)

If you want players from outside your local network to connect to your server, follow these steps:

Troubleshooting common Terraria server issues

Players can’t connect to the server

If players are unable to connect, there could be a few reasons behind this issue:

Server crashes or unexpected shutdowns

Occasionally, the Terraria server may crash or shut down unexpectedly. Here’s what you can do to minimize the risk:

Server won’t start or hangs during initialization

If your Terraria server hangs or doesn’t start at all, it could be due to:

Additional resources

How to start selling Minecraft servers →

Turn a hobby into a side-hustle

Latency and rage-quitting →

Liquid Web’s industry study on latency and gaming

Dedicated vs. listen servers →

Pros and cons of each so you can decide what you need