Set password in Terraria

A server password protects your Terraria server from unauthorized players. As an admin you can easily set a password.

Written on Feb 10, 2022

Why password Terraria server?

There are many reasons for having a password protected Terraria server. For example, you can use it to control who has access to your server.

How to set a password for a Terraria server?

Set password

  1. Connect to your Terraria server via FTP
  2. Navigate to the directory /terraria/tshock
  3. Open the file Config.json with a text editor
  4. Search the line "ServerPassword": "" and enter your password there
    1. Example: "ServerPassword": "Test123", so your password is: Test123 - write it down!
  5. Now save the changes and restart the server

Things to know

If you are SuperAdmin on your server, you don't need a server password to connect.

Local locations of the Config.json file

  • Microsoft Windows %USERPROFILE%\Documents\My Games\Terraria
  • Apple Mac OS: ~/Library/Application support/Terraria
  • Linux: $HOME/.local/share/Terraria
Terraria Logo







May 16, 2011


2D, Open-World, Survival, Sandbox


Playstation 4, Nintendo Switch, Android, Linux, Xbox One, Windows, iOS, Mac OS X

More topics about Terraria