Terraria
Host a Terraria dedicated server on your PC
Official files from terraria.org, port 7777, a world file you back up, and a PC that stays awake.
Updated 1 September 2026
Run Terraria on a PassThis is for someone who has never run a game server. You will put official Terraria files on a Windows PC so friends can play even when you are not in the game. Not Steam Host and Play, and not tMod. The PC has to stay on while people play.
1. Download the files
Do this on the Terraria website. Do not search for a random zip.
- Open terraria.org in your browser.
- Scroll all the way to the bottom of that page.
- Click
PC Dedicated Server. Do not click Mobile Dedicated Server. Your browser will download a zip. - Find the zip in your Downloads folder. Right-click it and choose Extract All (or Unzip).
- Open the unzipped folder. You will see a folder named with a number (that is the version). Open that, then open the
Windowsfolder. You want the file calledTerrariaServer.exe.
Friends must be on the same Terraria version as the zip you just downloaded. If Steam updated the game and this zip is older, they cannot join. Worlds from tMod will not load on this server.
2. Put them in a folder you will keep
- Create a folder you will not delete, for example
C:\TerrariaServer. - Copy everything from that
Windowsfolder into it. - Inside
C:\TerrariaServer, make a new folder namedWorlds.
3. Make the config file
- In the same folder as
TerrariaServer.exe, right-click empty space, New, Text Document. - Name it
serverconfig.txt. Windows may hide the.txt. If you seeserverconfig.txt.txt, turn on file extensions and rename it. - Open it in Notepad and paste this. Save, then close Notepad.
world=C:\TerrariaServer\Worlds\Friends.wld
worldpath=C:\TerrariaServer\Worlds
worldname=Friends
autocreate=2
difficulty=0
maxplayers=8
port=7777
password=
secure=1What those lines mean:
worldnameis the world name, 20 characters max.autocreateis the world size, locked in the first time the world is made: 1 small, 2 medium, 3 large.difficulty 0is Classic, also locked in the first time.- 8 players is a sensible cap on a normal PC. RAM runs out before the port does.
4. Start the server
- Open File Explorer to
C:\TerrariaServer. - Click the address bar, type
cmd, press Enter. A black window opens in that folder. - Type this and press Enter:
TerrariaServer.exe -config serverconfig.txtThe first run creates the world. Wait until the window says the server has started. Leave that window open while people play.
If you are on Linux instead, use the Linux folder from the same zip and run:
./TerrariaServer.bin.x86_64 -config serverconfig.txt5. Open the port so friends can reach you
Friends outside your house need one hole in your router: send TCP port 7777 to this PC. The full click-by-click is in Port forwarding so friends can join, because every router looks different. If the public IP on that page is not the WAN address on the router, your provider is sharing the address and forwarding will not work.
6. Keep the world safe and the PC awake
- In the server window, type
saveand press Enter, or shut down withexit. Closing the window like a normal program can lose that session. - Leave the PC on. Sleep, hibernate, or shutting a laptop lid stops the server.
- Copy the
.wldfile out ofWorldsbefore a long session. That file is the world.
7. Friends join
- They open Terraria.
- Choose Multiplayer, then Join via IP.
- They type the public IP you wrote down, port 7777.
- They must be on the same vanilla Terraria as your zip. Put a password in
serverconfig.txtif that IP is going to sit on the internet.
If you do not want the PC on
OmniPass runs the same vanilla Terraria dedicated server. We keep the world file and freeze it when you are not playing, so you are not paying to leave a box awake. Start from a Pass if you would rather skip the router.