This article is also available in:
Terraria | How to Set a Password to your TShock Terraria Server

For Vanilla Guide. Check this link How to Set a Password to your Terraria Vanilla Server

Login to your

Click View on your Server

On the Left side, Click Files

Locate and Open the folder called tshock

Open config.json

Find "ServerPassword": "", and put the password between ""
Example: "ServerPassword": "skynode",

Click Save and Restart your server.

All done! Remember to only share it with people you want to play with!
Was this article helpful?
Thank you!