Skip to content
Guide

How to Make a Terraria Server

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.

6 min read Beginner Anti-DDoS hosting

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.

Before you start

What you'll need

A quick checklist before you begin — have these ready and the rest is easy.

  • 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.
Step by step

Set up a Terraria server, step by 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.

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.

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.

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=2
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.

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.

Best practices

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.

Troubleshooting

Common problems & fixes

Hit a snag? These are the issues people run into most — and how to solve them.

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.

Skip the setup — host it with ESAGAMES

Want your world online 24/7 without port-forwarding? Our Terraria hosting runs on fast CPUs and NVMe behind a multi-Tbps Frankfurt network — TShock-ready, protected and instant.

Terraria hosting
FAQ

Frequently asked questions

Is it free to make a Terraria server?

Yes, self-hosting is free — the dedicated server ships with the game (and a free Linux build is on terraria.org). It does tie up a PC and needs port-forwarding; a managed host runs it online for you for a couple of euros a month.

What port does Terraria use?

The default is TCP 7777. Forward it at home so friends can connect, or let a host handle it.

How much RAM does a Terraria server need?

A vanilla server needs only about 1–2 GB. TShock with many plugins, or a tModLoader modded server, wants more.

What is TShock and do I need it?

TShock is a server replacement that adds permissions, commands, anti-grief and economy features. You do not need it for a small friends server, but it is the standard for public ones.

How do friends join my server?

They pick "Join via IP" in the multiplayer menu and enter your public IP (or domain) and port. Make sure the port is reachable.

Can I use my single-player world?

Yes. Copy your .wld world file to the server and load it on startup, or set autocreate/worldname to point at it.

More guides

Keep reading

Ready to launch?

Protected, low-latency game hosting in Frankfurt — online in minutes with 24/7 support.

Payments Secure checkout with cards, banking apps and digital wallets.

Choose the payment flow that fits your stack and region without leaving the platform.

Pay by Zen Visa Mastercard Paysafecard PaysafeCash Skrill Trustly Bancontact UnionPay iDeal WebMoney