By default, Terraria servers are open to the public, meaning anyone with your IP address can join. Adding a password helps protect your world from unwanted visitors and keeps your server secure from griefing.
Log in to your Control Panel and stop the server.


Navigate Startup > Variables.

Scroll down to the Password field and enter your desired password.

Restart your server.
