If you want a Terraria world that friends can reach without waiting for one player to host a session, you can run a dedicated server yourself or rent a managed game server. Re-Logic provides the PC dedicated-server files, and Windows installations of Terraria also include the server executable. This guide covers the unmodded, or vanilla, server rather than tModLoader.
Checked: October 19, 2026. Dedicated-server version: 1.4.5.8. Platforms covered: Windows and x86-64 Linux. The official Terraria Wiki identifies version 1.4.5.8 as the desktop hotfix released on August 23, 2026 and lists the matching dedicated-server download.
What you need to host a Terraria server
- A Windows or Linux machine that remains powered on whenever players need access.
- The current Terraria dedicated-server files.
- An existing world file, or the option to generate a new world.
- Appropriate firewall and router configuration if players will connect over the internet.
The reviewed official server documentation does not provide a universally reliable CPU or RAM minimum for every Terraria server. Avoid treating estimates from old hosting guides as authoritative requirements.
Networking: TCP port 7777
The vanilla dedicated server uses TCP port 7777 by default. If your server sits behind a NAT router and needs to accept direct connections from the internet, forward the server's configured TCP port to its local IP address and allow that port through the host firewall.
If you choose a different port, the server configuration, firewall, router forwarding rule, and client connection settings must all agree. You do not need to open UDP 7777 simply because you are running the vanilla server described here.
Set up a Terraria dedicated server on Windows
On Windows, TerrariaServer.exe is normally included in the Terraria installation folder. Steam can open the game directory from Terraria's properties. Alternatively, download the current PC server package from Terraria.org.
- Update Terraria or download the current dedicated-server package.
- Open the game or server directory and launch
TerrariaServer.exe. - Choose an existing world or generate a new one.
- Set the player limit, port, and optional server password.
- Allow the world to finish loading before trying to join.
Use serverconfig.txt for a persistent setup
Instead of answering the interactive setup questions on every launch, use a server configuration file. The dedicated server accepts a -config argument pointing to your configuration file. Common settings include the world file, world name, network port, password, and maximum player count.
If you run several server instances on the same machine, give each instance its own world, configuration file, and port.
How to join your Terraria server
- Launch Terraria on the computer you want to play from.
- Open Multiplayer.
- Select the option to join via IP address.
- Enter the address of the server.
- Enter the configured port (7777 by default).
- Enter the password if the server requires one.
Inside your home network, use the host machine's local IP address. Friends outside your network need an externally reachable address and correctly configured router and firewall rules.
Save your world and stop the server safely
Avoid shutting down the host computer while the server is still running. Terraria's server console includes save to write the current world state and exit to save before exiting cleanly. By contrast, exit-nosave quits without saving.
Make a separate backup of the world file before major updates or configuration changes.
Set up a Terraria dedicated server on Linux
The official dedicated-server archive includes Linux server files. For an x86-64 Linux system, the documented installation process is:
- Download and extract the latest dedicated-server package from Terraria.org.
- Change into the Linux directory inside the extracted package.
- Mark the server executable as runnable, for example with
chmod +x TerrariaServer.bin.x86*. - On x86-64, launch
./TerrariaServer.bin.x86_64.
World files and keeping a Linux server online
The official server reference lists ~/.local/share/Terraria/Worlds/ as the default Linux world directory. To keep the server running after you disconnect from a shell session, consider running it in tmux and reconnecting to that session later.
Common connection problems
Joining works over LAN but fails over the internet
Check forwarding for the actual TCP port in use and the firewall on the server machine. Confirm that the host's local IP address has not changed since you configured the forwarding rule.
The client cannot reach the server
Make sure the server process is running and has loaded the intended world. Check that the client and server use compatible, current Terraria versions, then confirm the IP address and port.
The server stops after you log out on Linux
Run the process in a persistent shell session such as tmux, or configure a dedicated system service.
Self-hosting versus renting a Terraria server
Choose based on how much administration you want to handle. Self-hosting gives you control of the computer, files, and network, but requires the host to stay online and accept external connections when friends want to play. A managed host usually handles the underlying machine and avoids the need to forward ports on your home router.
- Self-host: Suitable if you already have a capable machine and are comfortable handling networking, updates, and backups.
- Rent a managed server: Suitable if you want the world available independently of your own PC and internet connection, with less system administration.
Before choosing a provider, check its backup tools, file or FTP access, support for importing an existing world, and the specific Terraria server variant offered. Do not assume that support for vanilla Terraria also includes modded server software.
For related co-op and platform details, see the Terraria game profile.
Sources
- Official Terraria Wiki — version 1.4.5.8 (August 23, 2026).
- Terraria — 1.4.5 hotfix updates.
- Terraria.org — game and dedicated-server downloads.
- Official Terraria Wiki — server reference.
- Official Terraria Wiki — server setup guide (supplementary reference; some sections may need revision).