Articles
Explore some articles written by our team & fellow gamers!
Explore some articles written by our team & fellow gamers!
We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking βAcceptβ, you consent to our use of cookies. Read our Privacy Policy to learn more.
Want to invite your friends into your own Terraria world without relying on Steam's peer-to-peer connection? Hosting a Terraria server gives you complete control over your multiplayer experienceβfrom world settings to player limits to automatic backups. Whether you're a casual builder or a hardcore adventurer, this guide walks you through everything you need to know about setting up and running a Terraria server.
Before diving into the technical stuff, let's talk about why how to host a Terraria server matters. Steam multiplayer works, but it comes with limitations:
A dedicated server solves all of this. You get a persistent world that runs 24/7, better performance, and full administrative power. Whether you're running a casual community world or a serious PvP arena, a proper Terraria server is the way to go.
Before you start: This method requires your PC to run the TerrariaServer.exe application continuously. It's perfect for small friend groups but not ideal for 24/7 uptime.
\Terraria folderSome players prefer downloading the server files directly from Re-Logic's website, but using your Steam copy ensures you're always on the latest version.
Your server needs a serverconfig.txt file to know how to run. Here's how to create it:
maxplayers=8
port=7777
password=YourSecurePassword
difficulty=1
worldname=MyWorld
seed=
secure=1
language=1
upnp=1
server=1
npcstream=60
slowliquids=0
What these settings mean:
For friends outside your local network to connect, you need to port forward. This tells your router where Terraria traffic should go:
ipconfig in Command Prompt)Pro tip: If you're worried about security or don't want to mess with router settings, EZ Game Host handles all of this automatically with managed Terraria server hostingβno port forwarding needed.
cd "C:\Program Files (x86)\Steam\steamapps\common\Terraria"
TerrariaServer.exe -config serverconfig.txt
listening..., your server is liveKeep this window open. The moment you close it, your server shuts down.
When TerrariaServer.exe runs for the first time, it might prompt you to create a new world or use an existing one:
Your world saves automatically. The world file is stored as a .wld file in your Terraria server directory.
If running a server from your PC sounds like a hassle (and let's be honest, it is for 24/7 hosting), renting from a game server hosting provider like EZ Game Host is the professional move.
When you rent from EZ Game Host, you get a web panel where you can:
It's significantly more reliable than self-hosting and costs less than you'd think.
One of the biggest questions we see is: Is Terraria crossplay?
The short answer: Not in the traditional sense.
This is a critical limitation if you're thinking about playing Terraria multiplayer across different platforms. You'll need everyone on the same platform to use a dedicated server together.
Steam Multiplayer (P2P):
Dedicated Server:
If you want the best how to host a Terraria server experience, dedicated servers win every time.
Once you have the basics running, you can fine-tune your server's behavior:
Add these lines to your serverconfig.txt:
autosave=1
This automatically saves your world file every few minutes, protecting progress if the server crashes.
The difficulty setting affects:
Change it anytime in your serverconfig.txt and restart.
Create a banlist.txt file in the same directory as TerrariaServer.exe. Add problem players' names:
TrollPlayer123
Griefer42
Similarly, create a whitelist.txt for invite-only servers:
BestFriend1
BestFriend2
Adjust the npcstream value based on player count:
Lower values reduce lag but may cause issues with NPC synchronization.
Check your port forwarding:
Check your firewall:
Reduce max players β Less load on your PC Lower npcstream value β Reduces bandwidth Close background apps β Free up resources Check your internet upload speed β Need at least 2 Mbps for smooth multiplayer
If local hosting is causing too much lag, EZ Game Host uses optimized servers that can handle this load without breaking a sweat.
Check available disk space β Your world file grows over time Verify your world file isn't corrupted β Boot into single-player to test Review the server output β Look for error messages before the crash Increase available RAM β Worlds with many structures need more memory Keep Windows updated β Server performance improves with OS patches
Q: Can I host a Terraria server on a Mac? A: Not directly with TerrariaServer.exe. You'd need to use Wine or Proton emulation, which is unstable. Consider using a hosting provider instead.
Q: Do I need a static IP to host a Terraria server? A: Not necessarily, but it helps. If your IP changes, friends need the new one. Dynamic DNS services can help if your ISP assigns new IPs frequently.
Q: What's the maximum number of players on a Terraria server? A: Up to 255 technically, but realistic limits are:
Q: How do I access my world file for backups?
A: Find the .wld file in your Terraria server directory (usually \Terraria\Worlds\). Copy it to a safe location. If using EZ Game Host, backups are automatic.
Q: Can I transfer my single-player world to a server? A: Yes, mostly. Copy your .wld file from your single-player Worlds folder to the server's Worlds folder and reference it in serverconfig.txt. Some compatibility issues might occur.
Q: Is password protection secure? A: It's basic protection against randoms joining. For serious security, combine passwords with whitelist/banlist files and keep your server IP private.
Q: What happens if my internet goes out? A: The server goes down temporarily. Friends get disconnected and lose any unsaved progress since the last auto-save. This is why dedicated hosting is more reliable.
Q: Can I run a Terraria server on a Raspberry Pi? A: Possibly, but it's not recommended. Performance will be poor. You're better off using an affordable hosting provider like EZ Game Host.
How to host a Terraria server boils down to two paths:
For casual friend groups playing a few hours a week, PC hosting works fine (just remember to leave it running). But if you want a serious, always-on world where players can log in anytime, hosting a Terraria server through a professional provider removes the headaches entirely.
Whether you go the DIY route or choose managed hosting, you now have everything you need to get your world multiplayer-ready. Invite your friends, grab your pickaxe, and happy mining.
Ready to skip the technical setup? Check out EZ Game Host's Terraria server hosting. One-click deployment, automatic backups, and support that actually helps when you need it.