Short answer. You can host a Terraria server yourself for free: download the dedicated server from terraria.org, unzip the Linux folder, start TerrariaServer.bin.x86_64 with a serverconfig.txt and open TCP port 7777. Or rent a Terraria server and skip the networking.
Players open Terraria, choose Multiplayer, then Join via IP, and type your IP address and port.
Checked on 5 November 2026 against Terraria 1.4.5.8, the newest dedicated server build terraria.org offered.
This guide uses two sources: the dedicated server download from terraria.org, including the example serverconfig.txt it ships, and what we run on every Terraria server we host. To skip to the rental route, go to Option 2.
What you need
The server software: the free "Terraria Dedicated Server" archive from terraria.org. You do not need to own the game to download it, but every player needs Terraria, and each must be on the same version as the server.
A machine that stays on: a spare PC, a home server or a cloud virtual machine. This guide uses 64-bit Linux, which is what we run. The same archive has Windows and macOS builds that we do not cover here.
Replace YOURUSER with your user name. autocreate makes a world when none exists: 1 is small, 2 medium, 3 large. difficulty is 0 classic, 1 expert, 2 master, 3 journey. Leave password empty for an open server.
Edit the file only while the server is stopped.
Open the port
Game: allow TCP 7777 on the machine's firewall (for example sudo ufw allow 7777/tcp) and forward it on your router.
No port forwarding possible? Some internet providers do not let you forward ports at all. Then run the server on a cloud machine, or rent one.
Start it and join
Start the server inside tmux, so it keeps running after you close the terminal:
tmux
cd ~/terraria
./TerrariaServer.bin.x86_64 -config serverconfig.txt
It is ready when the console prints Type 'help' for a list of commands. Detach with Ctrl+b then d.
Join it. In Terraria choose Multiplayer, then Join via IP, and pick a character. Enter your server's IP address, then the port on the next screen (7777), then the password if you set one. Friends outside your home network need your public IP address.
Update by stopping the server and repeating the download with the new build number. Steam updates Terraria on players' PCs, and a player whose game is on a different version is turned away with You are not using the same version as this server.
The world that crashes an older server
This is a trap we found on real servers. A world saved by a newer Terraria cannot be opened by an older server. It does not say why: in October 2026 a server pinned to 1.4.4.9 was pointed at a world saved by 1.4.5.8 and stopped with Server crash and a NullReferenceException at Terraria.Main.DedServ.
The first four bytes of a .wld file hold the release number that saved it. On our servers, 1.4.4.9 saves 279 and 1.4.5.8 saves 326. Check yours with:
od -An -t d4 -N4 ~/terraria/saves/Worlds/myworld.wld
If that number is higher than your server build can read, update the server instead of fighting the crash. Keep a copy of the .wld file before any update.
Option 2: host it on PlayNHost
Renting removes the install, the port forwarding and the update routine. You still choose a world, a difficulty and a password.
Pick a plan. Open the Terraria server hosting page and compare the plans: COPPER (4 players), DEMONITE (8) and LUMINITE (15) at the time of writing. Press Create Server (Customize Plan on LUMINITE) and finish the order. Prices change, so check them on that page.
Set up the world before the first start. World size, difficulty and seed only matter when a new world is created. In the panel, open Settings, then Game Settings, and set World Name, World Size, Difficulty and, if you want one, World Seed or a special seed. Add a Password for a private server.
Start it. The Console prints Type 'help' for a list of commands when the server is ready.
Invite your players. The Play with friends card on Overview shows the IP and the port, and Copy invite message copies them. Players choose Multiplayer, then Join via IP, enter the IP, then the port on the next screen. See How to join your Terraria server.
The port is assigned and open from the start, and the server software is installed from terraria.org's own release feed.
With Auto-update server on and Terraria version on latest (both the default; Auto-update server sits under Show advanced in Game Settings), each start checks for a newer Terraria build and installs it, so a restart keeps your players able to join. Your worlds and serverconfig.txt are not touched by that update. If the update cannot run, the server starts on the build it already has.
If you turn Auto-update server off or pin an older Terraria version, each start checks the world's save number against the builds we have measured and prints a warning in the Console when the world was saved by a newer Terraria than the server's build, the crash described above.
We use cookies to keep the site working, to understand how it is used, and to measure our marketing. You can accept all, accept essential cookies only, or choose per category.We use cookies to keep the site working, to understand how it is used, and to measure our marketing. They are on by default here. You can switch off anything you do not want.Read our privacy policy