Running a Terraria dedicated server mostly comes down to one text file (serverconfig.txt). This guide is based on the Terraria wiki server page and the TShock documentation and collects what server owners run into most often.
Checked 2026-11-17. The game and TShock change over time, so check the current documentation before any bigger change. Our team sets the server up; you run it from the client area (live console, file manager, backups).
1. Requirements and ports
- Port: the default is TCP 7777. The wiki says that on cloud hosts you should open 7777 for both TCP and UDP.
- Memory: for a small world the wiki mentions about 500 MB of free RAM; usage grows with world size and player count.
- Runtime: the wiki mentions .NET Framework 4.0 and XNA on Windows; Mono can be used on non-x86 systems. The older TShock guide mentions Mono 4+ and 2 GB RAM on Linux, but the page itself says it is no longer valid for the latest version.
- The player limit is set with the maxplayers key (1 to 255).
2. First start and serverconfig.txt
- The settings live in serverconfig.txt. Lines starting with # are comments.
- The key ones: world (the world file), autocreate (1 small, 2 medium, 3 large world), worldname, seed, difficulty (0 Normal, 1 Expert, 2 Master, 3 Journey), maxplayers, port, password, motd, worldpath, banlist, secure and language.
- If the world does not exist, autocreate together with worldname makes the server create it.
- Set a password with the password key (or the -pass / -password launch parameter); in the console the password command shows or changes it.
- After editing, restart the server from the client area so the file is read again.
world=Terraria.wld
autocreate=2
worldname=Terraria
maxplayers=8
port=7777
password=STRONG_PASSWORD3. Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| Nem tudok csatlakozni a szerverre | A 7777-es port nincs megnyitva, vagy rossz IP / port van megadva | Enter SERVER_IP:7777 when joining; if it still fails, ask our team to check that the port is reachable. |
| It asks for a password I do not know | The password key or -pass parameter is set | Look at the password line in serverconfig.txt, or run the password command in the console. |
| The latest progress is gone | The server autosaves periodically, but on shutdown only the exit command saves | Use exit (saves and stops) or run save first. exit-nosave does not save. |
| Time stops on an empty server | With no players online the server hibernates | This is normal; it resumes when someone joins. |
| Slash commands or the whitelist do not work | The plain server cannot do these; third-party software such as TShock is needed | Ask our team about a TShock setup, or use the console commands (kick, ban, say). |
| A Linux terminal error appears in the console | The TERM environment variable is missing | According to the wiki, exporting TERM=xterm can help. |
| The server will not start because of the world | The world / worldpath path is wrong | Check that world or worldpath points to the real path you see in the file manager. |
4. Saves and updates
- On Linux the world files are in ~/.local/share/Terraria/Worlds/ unless worldpath says otherwise.
- The server autosaves periodically and (from Desktop 1.4.5.0) also when the last player leaves. On shutdown, the exit command saves.
- Before updating or changing things, make a backup with the client area backup feature and keep the .wld file.
- When updating TShock, the older guide says to back up the server folder first, then replace TerrariaServer.exe and the dll files, and update the plugins as well.
5. Admin and TShock
- On the plain server the console accepts: help, playing, save, exit, kick NAME, ban NAME, say MESSAGE, password, motd, maxplayers.
- For a whitelist, player passwords and in-game commands the wiki says third-party software is needed, for example TShock.
- The older TShock guide says the console prints a setup code on first start; you enter it in game with /setup CODE and then create an owner account. That guide is marked as outdated, so check the current TShock documentation for the exact steps.
6. Choosing a plan
- Load depends on the world size (small, medium, large), the number of players and how many TShock plugins you run.
- The wiki mentions about 500 MB for a small world and adds that usage rises with world size and player count. This is not a performance guarantee.
- For a few friends on a small world the Start plan may be enough; for a bigger world, more players or many plugins pick Pro or Max. If unsure, tell us your world size and planned player count.



