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.
Save and start
Click Save Content and start from Console.
How Players Connect
Players are prompted for the password when they try to join:
- Click Multiplayer > Join via IP
- Enter the IP and port
- 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=1setting inserverconfig.txt
Related Guides
How is this guide?

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