Skip to content

Terraria: Server Configuration

Learn how to configure your Terraria game server’s world, size, difficulty, password, and other startup parameters, and how to switch worlds.

26 November 20265 min read2 Views0 helpful

Don't have your own server yet? Host your Terraria server with ZAP-Hosting from €4.49 / month.Or try 3 days from €0.81

Introduction

With the right configuration, you can make your Terraria game server exactly the way you want it: a custom world with the right size and difficulty, a password for your friends, and a welcome message for everyone who joins. In this guide, we’ll show you which settings are available, where to find them in ZapX, and how to switch worlds.

How configuration works

Terraria reads its settings from the serverconfig.txt file in your server’s config folder. You don’t need to edit this file manually: you can find all the settings in ZapX under Configuration > Startup parameters.

Important

Your server completely rewrites serverconfig.txt from the startup parameters every time it starts. Any changes made directly to the file will be lost the next time the server starts. Always change your settings in the Startup Parameters.

After you save your changes, ZapX will offer to restart the server. Your changes will only take effect after the restart.

Startup parameters at a glance

Startup parameterDescription
World file nameName of the world file in the worlds folder, without the folder path or .wld extension. Default: world
World nameName of the world in the game. Only used when a new world is created. Default: ZapX Terraria World
Automatic world generationSize of a new world if the world file doesn’t already exist: 1 = small, 2 = medium, 3 = large, 0 = disabled. Default: 2
Max. playersThe number of players who can play on your server at the same time. Terraria allows values from 1 to 255. Default: 10
Message of the day (MOTD)Message players see when they join. Default: A ZapX Terraria Server
Server passwordPassword required to join. Leave blank for an open server.
DifficultyDifficulty of a new world: 0 = Classic, 1 = Expert, 2 = Master, 3 = Journey. Default: 0
LanguageLanguage used for server output in the console, such as en-US or de-DE. Default: en-US
Secure mode1 enables Terraria’s additional cheat protection; 0 disables it. Default: 1
World seedSeed for a new world. Leave blank for a random seed.
Additional startup parametersAdditional Terraria startup parameters that your server appends when it starts. Default: blank
Info

World name, Automatic world generation, Difficulty, and World seed only apply when a new world is created. An existing world keeps its size, difficulty, and seed, even after a restart.

Tip

You can only enter a Journey world (3) with a Journey character. Journey characters can only play in Journey worlds. You’ll need a regular character for Classic, Expert, and Master worlds.

The available Language values include en-US (English), de-DE (German), fr-FR (French), es-ES (Spanish), it-IT (Italian), pl-PL (Polish), pt-BR (Portuguese), ru-RU (Russian), and zh-Hans (Chinese).

ZapX sets the port, world folder, and ban list for your server, so you don’t need to change these values.

Managing worlds

Your worlds are stored in the worlds folder. The World file name startup parameter determines which world your server loads. If you accidentally include a path or the .wld extension, ZapX automatically removes it when you save.

Creating a new world

  1. Set Automatic world generation and Difficulty, and, if you want, set the World seed and World name.
  2. Enter a new name under World file name, for example world2.
  3. Save your changes and restart your server.

If your server can’t find a file with that name, it creates a new world. Your previous world remains in the worlds folder, and you can switch back to it at any time by entering its file name again.

Info

If Automatic world generation is set to 0, your server won’t create a new world. Leave it set to 1, 2, or 3 if you want to create one. Depending on its size, world creation takes a few minutes. You can check its progress in the Console.

Uploading your own world

  1. On Windows, your local Terraria worlds are usually in the Documents\My Games\Terraria\Worlds folder.
  2. Stop your server.
  3. In the Savegames tab, upload your world’s .wld file to the worlds folder.
  4. Under World file name, enter the file name without .wld, for example MyWorld for MyWorld.wld.
  5. Start your server.

For instructions on downloading and backing up worlds, see our guide Managing savegames.

Changing settings through the console

You can also change some settings while the server is running in the Console tab, for example with password <new password> or motd <new message>. However, these changes only last until the next startup because your server then rewrites serverconfig.txt from the startup parameters. To change the password and message permanently, use the Server password and Message of the day (MOTD) fields.

Use save to save the world, or exit to save it and shut down the server. For more console commands, such as playing, kick, and ban, see Becoming a server admin (TShock).

Additional startup parameters

Under Additional startup parameters, you can enter other Terraria server startup parameters that don’t have their own fields. For example:

Code
-disableannouncementbox

This disables the text messages sent by an Announcement Box when it’s triggered by wires. Separate multiple parameters with spaces. You can’t pass values that contain spaces here.

Important

Don’t enter values here that already have their own startup parameters, such as player count, password, or world. Only use this field if you know exactly what a parameter does.

You can’t permanently set options that are only available in serverconfig.txt, such as Journey permissions (journeypermission_…), because your server rewrites the file every time it starts.

Access, admins, and TShock

The standard Terraria server doesn’t have admin accounts or its own whitelist. You can protect access with the Server password, and remove and ban unwanted players through the Console. For instructions, see the guide Whitelist.

If you need admin accounts with permissions or a proper whitelist, install TShock on your server. ZapX automatically detects a TShock installation in your server folder and starts TShock instead of the standard server. ZapX also uses the world, player count, and server password from the startup parameters with TShock. TShock settings are stored in the tshock folder. To learn how to install TShock and set yourself up as an admin, see Becoming a server admin (TShock).

Tip

You can send recurring messages to your players, such as rules or a Discord reminder, using a schedule. For instructions, see Automated server messages.

You can find every command for your Terraria server in our overview of Terraria server commands.

Conclusion

Your Terraria server is now set up just the way you want it. For instructions on connecting to your server, see Connecting to the server. If something isn’t working properly, our guide Common issues can help. If you have any other questions, our support team is available every day! 🙂

Free tools

Terraria Tools

View all

FAQ

Frequently asked questions

Your server completely rewrites serverconfig.txt from the startup parameters every time it starts. Change your settings under Configuration > Startup Parameters.
Set Automatic world creation and Difficulty, and optionally set the World seed and World name. Enter a new name under World file name. After the restart, the server creates the new world, and the old one remains in the worlds folder.
Difficulty, world size, world name, and seed only apply when a new world is created. An existing world keeps its current settings.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.