How to Set a Password on Your Terraria Server

Password protect your Terraria dedicated server so only invited players can join.

Open Startup

In the XGamingServer Panel, click Startup in the sidebar.

Set the Password field

Find the Password field and enter your password.

Restart

Restart from Console to apply.

Stop the server

Go to Console and stop your server.

Open serverconfig.txt

Click Files in the sidebar and open serverconfig.txt.

Set the password

password=YourPassword

For a public server, leave it empty:

password=

Save and start

Click Save Content and start from Console.

How Players Connect

Players are prompted for the password when they try to join:

  1. Click Multiplayer > Join via IP
  2. Enter the IP and port
  3. When prompted, enter the password

Passwords are case-sensitive. Avoid spaces if possible — some clients can have issues with them.

Tips

  • Share the password through a private channel (Discord, etc.) — never publicly
  • Combine with Terraria's anti-cheat on competitive vanilla servers
  • If you need stronger access control, use the password plus the server's secure=1 setting in serverconfig.txt

How is this guide?

40% Off — Limited TimeGet your Terraria server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page