A beginner-friendly walkthrough for running your own Terraria server — use the built-in dedicated server, pick or create a world, set the port and password, open the port and invite friends. Plus TShock for plugins and the one-click hosted route.
Terraria can be hosted two ways: self-host the dedicated server that ships with the game (or the free Linux server from terraria.org), or use a managed host. Self-hosting is free but ties up a PC, exposes your home IP and needs port-forwarding; a host gives you a 24/7, DDoS-protected server with a panel for a couple of euros a month.
For plugins, permissions and an economy, most public servers run TShock instead of the vanilla server — we cover both.
What you'll need
- A machine for the server — a spare PC for testing, or a host for 24/7 uptime.
- The dedicated server (ships with the game) or TShock for plugins.
- Only about 1–2 GB of free RAM for vanilla; more for TShock/modded.
- Open port: TCP 7777.
- A way for friends to connect — port-forwarding at home, or a clean IP from a host.
Set up a Terraria server, step by step
Step 1: Choose self-host or a managed host
Self-hosting is free but needs a PC on 24/7 and port-forwarding. A managed host gives you an always-online server and a panel in minutes. Want zero hassle? Pick a host and skip to step 5.
Step 2: Get the dedicated server
The Windows dedicated server (TerrariaServer.exe) ships with the game; the free Linux/standalone server is on terraria.org. For plugins, download TShock instead — it is a drop-in replacement with permissions and commands.
Step 3: Pick or create a world
Run the server; it asks you to create a new world (size, difficulty, name) or load an existing one. Bigger worlds and higher difficulty use a little more RAM.
Step 4: Set the port and password
You can pass settings on the command line or in a serverconfig.txt. The default port is 7777 (TCP). Set a password to keep the server private.
worldname=My World port=7777 maxplayers=8 password=changeme autocreate=2Step 5: Open the port
Forward TCP 7777 to the server so friends can connect. On a managed host the port is handled for you and you just share the address.
Step 6: Invite friends
Share your address (public IP or domain, plus the port if it is not 7777). Players choose "Join via IP" in the multiplayer menu and enter it.
Keep it smooth and fun
Terraria is light
A vanilla server is happy with 1–2 GB RAM. Heavy TShock plugin stacks or big modded servers (tModLoader) want more.
Use TShock for plugins
TShock adds permissions, commands, anti-grief and an economy — the standard for public Terraria servers. It replaces the vanilla server.
Back up your world
The .wld world file is your whole server. Schedule backups so a crash or griefer never erases it.
Protect your IP
Self-hosting exposes your home IP. A managed host puts a clean, DDoS-protected IP in front of your world.
Common problems & fixes
Friends can't connect
TCP 7777 isn't reachable. Forward it on your router and share your public IP, or use a host with a clean public IP.
Server closes right after starting
A config or world error. Check the world name/path and that autocreate is set, or run interactively to create the world first.
Plugins won't work
The vanilla server has no plugin support. You need TShock (a separate server build) for plugins and commands.
"Lost connection" mid-game
Usually a network drop or the host PC sleeping. Keep the machine awake, or move to a host with stable uptime.
Terraria is a trademark of Re-Logic. ESAGAMES is an independent hosting provider and is not affiliated with or endorsed by Re-Logic. You must own a legitimate copy of the game to play.