Terraria's built-in multiplayer lets you host a session directly from your own game — but the moment you quit, your friends get kicked and the world goes offline. A dedicated server changes that: it runs independently in the cloud so your group can play any time, even when you're not around.
This guide covers setting up a dedicated Terraria server in 2026 — including vanilla configuration, tModLoader for mods, transferring an existing world, and fixes for the most common problems.
Host your Terraria server free — 4GB RAM, 24/7 uptime, no credit card needed.
Create Free Terraria Server →| Feature | Vanilla | tModLoader |
|---|---|---|
| Mod support | None | Full Steam Workshop support |
| RAM usage | ~512MB–1GB | 2–4GB depending on mods |
| Setup complexity | Simple | Slightly more involved |
| Player requirements | Own Terraria | Own Terraria + tModLoader + same mods |
| Best for | Playing through vanilla | Calamity, Thorium, large modpacks |
If you're playing vanilla Terraria, use the vanilla dedicated server. If you want mods like Calamity or Thorium, use tModLoader — it's a free, Valve-approved mod framework available on Steam as a separate app.
Log in to panel.freegamehost.xyz and click Create Server. Select Terraria and choose Vanilla as the server type. The server files install automatically.
Open serverconfig.txt in the File Manager. The most important settings:
autocreate — world size: 1 = small, 2 = medium, 3 = largedifficulty — 0 = Classic, 1 = Expert, 2 = Master, 3 = Journeypassword — leave blank for a public serverClick Start in the control panel. On first boot, Terraria will generate your world — this takes 30–90 seconds depending on world size. Once you see Server started in the console, the server is ready.
Open Terraria, click Multiplayer → Join via IP, and enter your server IP (shown in your FreeGameHost panel) and port 7777. Select a character and you're in.
Share the IP and password with your friends so they can connect the same way.
If you've been playing a world locally and want to move it to the dedicated server:
C:\Users\YourName\Documents\My Games\Terraria\Worlds\YourWorldName.wld (and a .wld.bak backup)/root/.local/share/Terraria/Worlds/.wld file thereserverconfig.txt so the world= line points to your uploaded file pathtModLoader is the standard modding platform for Terraria, available free on Steam (App ID 1281930). The server version runs headlessly just like the vanilla dedicated server.
When creating your server on FreeGameHost, choose tModLoader instead of Vanilla. This installs the correct server binary and folder structure automatically.
tModLoader mods are installed on the client side first, then synced to the server. The recommended workflow:
.tmod files to /root/.local/share/Terraria/ModLoader/Mods/enabled.json in that same folder listing the mods to loadEvery player connecting must have the exact same mods enabled client-side. The easiest way is to share a tModLoader Mod Pack — in tModLoader's Mod Manager, click Save Enabled as Mod Pack and share the file. Players import it in one click.
See our dedicated Best Terraria Mods in 2026 article for the full ranked list. The short version for server play:
Check the world= path in serverconfig.txt. The full path must exactly match the .wld filename including capitalisation. On Linux servers (which most hosting uses), file paths are case-sensitive.
Verify the server is fully started (look for Server started in the console). Confirm your port is set to 7777 in both serverconfig.txt and in the FreeGameHost Network tab. FreeGameHost handles port forwarding automatically — you do not need to configure your router.
This almost always means a mod version mismatch. tModLoader versions are tied to specific Terraria versions, and mods are compiled for a particular tModLoader version. Check that your server's tModLoader version matches what players have installed. Update everything to the latest stable release.
Terraria saves a .wld.bak backup alongside your main world file. If your world fails to load, rename .wld.bak to .wld and restart. Set saveinterval in your config to autosave more frequently — the default is 10 minutes; 5 is safer.
difficulty=3 in serverconfig.txt. All players connecting must also use Journey mode characters. Note that Journey mode grants the host creative-style controls — any player with sufficient permissions can use the Journey menu, so consider who you give access to.maxplayers in your config to whatever fits your RAM and expected playstyle.saveinterval=600 (value is in seconds) in your serverconfig.txt. Always use exit rather than killing the process to ensure a final save.Ready to play Terraria with your friends around the clock? Start your free server now.
Create Free Terraria Server →Related: Best Terraria mods in 2026 • How much RAM does a game server need? • What is a dedicated game server?