> ## Documentation Index
> Fetch the complete documentation index at: https://help.freakhosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Configure Server Passwords in Terraria

> Set a connection password on your Terraria server and understand the difference between server-wide access keys and TShock user account security.

## Managing Private Access: Entry Passwords

Establishing a server-wide join password represents your primary technical defense against unauthorized intrusion and randomized community disruption. This global setting applies to both vanilla and TShock-based instances, requiring every participant to provide a matching security key during the initial network handshake. Correctly configuring this perimeter is essential for hosting private cooperative matches, dedicated community events, or specialized technical testing environments.

<CardGroup cols={2}>
  <Card title="Difficulty" icon="gauge-low">
    Beginner
  </Card>

  <Card title="Time" icon="clock">
    3 Minutes
  </Card>
</CardGroup>

***

## Technical Configuration Workflow

Follow these steps to define your server's public security key.

<Steps>
  <Step title="Access the File Manager">
    Log in to the [Game Panel](https://games.freakhosting.com) and navigate to the **Files** tab.
  </Step>

  <Step title="Open Server Config">
    Locate and open the **`serverconfig.txt`** file situated in your root directory.
  </Step>

  <Step title="Define the Password">
    Locate or add the `password=` variable. Input your desired alphanumeric string.

    * *Example Syntax:* `password=EmbervaleSecure2026`
  </Step>

  <Step title="Initialize Security">
    Save the file and **Restart** your server via the console. The engine must re-initialize to broadcast the authentication requirement.
  </Step>
</Steps>

***

## The Multi-Layered Security Model

Administrators using the [TShock Framework](/games/terraria/how-to-install-tshock-on-terraria) must distinguish between the two independent layers of security.

<Tabs>
  <Tab title="Global Connection Password">
    * **Purpose:** Restricts access to the entire world database.
    * **Enforcement:** Triggered the instant a player attempts to connect to the IP and Port.
    * **Logic:** Handled by the core server binaries.
  </Tab>

  <Tab title="Account Registry Password">
    * **Purpose:** Restricts access to specific permissions and character data.
    * **Enforcement:** Triggered **after** world joining via the `/login` command.
    * **Logic:** Handled exclusively by the TShock plugin framework.
  </Tab>
</Tabs>

***

<Note>
  ### Strategic Community Visibility

  If your community goal is to grow a large public player base and appear within the "Public" Terraria server masterlists, we recommend leaving the `password=` field blank. Statistics indicate that password-protected servers see significantly reduced engagement from randomized survivors. Instead, consider using [Graylisting](/games/terraria/managing-bans-and-guests-in-terraria) to protect your builds without restricting initial access.
</Note>

***

<Note>
  ### Need Extra Help?

  If you encounter any issues, our support team is ready to assist:

  * **Live Chat:** Quick assistance via our website.
  * **Support Ticket:** [Open a Ticket](https://freakhosting.com/clientarea/submitticket.php)
  * **Discord:** [Join our Community](https://discord.gg/freakhosting)
  * **Email:** [support@freakhosting.com](mailto:support@freakhosting.com)
</Note>

<Tip>
  ### Save on Your Hosting

  Ready to get a new server? Use code **KB20** at checkout for **20% off** your first month!
</Tip>

***

<div align="center">
  **Last Updated:** January 2026 | **Terraria:** Password protocols active.
</div>
