Skip to main content

Server Security: Entry Passwords


Setting a server password is the first line of defense against unauthorized players joining your lobby. This is a global setting that applies to both vanilla and TShock-based servers, requiring all players to enter a common code before they can initialize their connection.
Reading TimeDifficultyLast Updated
3 minutesBeginnerJanuary 2026

Configuration File

You can set your password by editing your serverconfig.txt file or using the Variables tab in your FREAKHOSTING panel. Locate or add the following line:
password=YourSecretPassword

TShock vs. Connection Passwords

It is important to understand the difference between the two security layers:
  1. Connection Password: A global password set in serverconfig.txt. Players must enter this immediately upon connecting to the IP:Port.
  2. TShock Account Password: A personal password set via /register. This is required after joining the world to access specific permissions or administrator powers.

Public Hosting

If you intend for your server to be listed on the public Terraria server web-list, you should leave the password= field blank. Servers with passwords often see significantly lower engagement from random players.

Support Channels

If you need assistance or have any questions, please contact our support team:

First Month Discount

Use code KB20 at checkout to get 20% off your first month of hosting!

Last Updated: January 2026 | Terraria: Password protocols active.