Tools / Terraria
Terraria serverconfig.txt generator
Choose your world, slots, port and Journey powers, then copy a serverconfig.txt for a vanilla Terraria server. The password stays a placeholder, and nothing you type leaves this page.
Generator
Your server
Output
serverconfig.txt
# Terraria serverconfig.txt maxplayers=16 port=7777
- There is no world path, so the server will not start on its own. It will ask in the console which world to load.
Putting it on the server
- Save the output as serverconfig.txt next to the server program.
- Start the server with -config serverconfig.txt, for example ./TerrariaServer.bin.x86_64 -config serverconfig.txt on Linux or TerrariaServer.exe -config serverconfig.txt on Windows.
- On a hosted server, keep the port your host assigned and use the panel's file manager.
This page has no password field. Built in your browser: nothing you enter here is sent or stored.
Method
How the file is put together
The vanilla Terraria server reads its settings from a plain text file, one key=value line each, passed to it with -config. Lines that start with # are comments. This generator writes that file for the settings on the form and leaves out any line you do not set, so the server keeps its own value.
Every key and allowed value comes from the official Terraria wiki's Server page and its command-line parameters. The wiki puts the default port at 7777 on TCP and the default player limit at 16, and maxplayers takes 1 to 255. World size is 1, 2 or 3 for small, medium and large, and difficulty is 0 to 3 for normal, expert, master and journey. Each Journey power takes 0 for locked, 1 for the host only or 2 for everyone.
TShock, which Puranode installs on Terraria servers by default, differs in three places. Its config.json settings decide the port (ServerPort, 7777 by default), the player limit (MaxSlots, 8 by default) and the password (ServerPassword). Tick the TShock box and the output says what to set there.
The Terraria server setup guide compares vanilla, TShock and tModLoader and covers moving a world and backups.
FAQ
Terraria config generator: questions
How does the server find serverconfig.txt?
Only through the -config start option, for example TerrariaServer.exe -config serverconfig.txt. A relative path is read from the folder that holds the server program. If the server cannot find the file, it falls back to asking its questions in the console.
Why did my server make a new world?
With autocreate set, the server builds a fresh world whenever nothing exists at the world path. A typo in the folder or file name is enough. Correct the path to point at your .wld file and restart, and the old world is still there.
Does TShock use this file?
Yes, when started with -config, but TShock takes the port, the player limit and preferably the password from tshock/config.json: ServerPort, MaxSlots and ServerPassword. Tick the TShock box and the generator lists the values to set there.
Can I change the difficulty of an existing world?
Not with this file. The size, name, seed and difficulty lines only apply when the server creates a world. An existing world keeps the difficulty it was made with.
Is anything I enter sent to Puranode?
No. The file is built in your browser. The page makes no request with your inputs and stores nothing, and it has no password field: turning on a password writes a placeholder that you replace on your own machine.
Need somewhere to run it?
Puranode hosts Terraria servers on EPYC and NVMe in the EU, with TShock installed and direct file access to your config and worlds.