How to set a Terraria server password

Terraria Server Password

By default, your Terraria server is open to the public. You can change this by setting a password. This guide will show you how to do that in a few simple steps.

Setting a password

  1. Start your server
  2. Pause your server
  3. Open your server's files
  4. Edit the gameserver/serverconfig.txt file
  5. Put your desired password after password=
  6. Save the file
  7. Restart your server

Example config file

Here is an example of what your serverconfig.txt file could look like:

world=Worlds/world1.wld
worldpath=Worlds/
worldname=world1
autocreate=1
difficulty=0
maxplayers=32
port=7777
password=YourSuperSecretPassword
motd=Yet another Squadnox server
banlist=banlist.txt
secure=1
language=en-US