# How to Change Your Terraria Server World Name (/docs/terraria/rename-server)



import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { Step, Steps } from 'fumadocs-ui/components/steps';

Terraria doesn't have a separate "server name" or "hostname" like most multiplayer games. Instead, the **world name** doubles as the server identifier — it's what players see when they connect and what's used as the save file name.

<Tabs items={['Via Startup (Recommended)', 'Via serverconfig.txt']}>
  <Tab value="Via Startup (Recommended)">
    <Steps>
      <Step>
        Open Startup [#open-startup]

        In the [XGamingServer Panel](https://panel.xgamingserver.com), click **Startup** in the sidebar.
      </Step>

      <Step>
        Set the World Name [#set-the-world-name]

        Find the **World Name** field and enter your desired name.
      </Step>

      <Step>
        Restart [#restart]

        Restart from **Console** to apply.
      </Step>
    </Steps>
  </Tab>

  <Tab value="Via serverconfig.txt">
    <Steps>
      <Step>
        Stop the server [#stop-the-server]
      </Step>

      <Step>
        Open serverconfig.txt [#open-serverconfigtxt]

        In **Files**, open `serverconfig.txt`.
      </Step>

      <Step>
        Set worldname [#set-worldname]

        ```
        worldname=MyWorld
        ```
      </Step>

      <Step>
        Save and start [#save-and-start]
      </Step>
    </Steps>
  </Tab>
</Tabs>

Important Notes [#important-notes]

| Behavior                         | Detail                                                                                                                |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| **Case-sensitive on Linux**      | `MyWorld` and `myworld` are different worlds                                                                          |
| **No spaces in some setups**     | Underscores or CamelCase are safer than spaces                                                                        |
| **Renaming creates a new world** | If you change the world name and the new name doesn't match an existing `.wld` file, Terraria generates a fresh world |
| **Existing worlds preserved**    | Your old world stays on disk — switch back by restoring the original name                                             |

Switching Between Worlds [#switching-between-worlds]

Because the world name determines which save loads, you can host multiple worlds and swap between them by changing this setting:

1. Stop the server
2. Change `worldname` to a different value (e.g., `Hardcore` instead of `Casual`)
3. Start the server — Terraria loads (or generates) the world with that name
4. Switch back later by changing the name again

Related Guides [#related-guides]

* [Server Configuration](/docs/terraria/server-config)
* [Change Difficulty](/docs/terraria/difficulty-settings)
* [Upload an Existing World](/docs/terraria/upload-save)
