# How to Configure Your Return to Moria Server (MoriaServerConfig.ini) (/docs/the-lord-of-the-rings-return-to-moria/server-config)



import { File, Folder, Files } from 'fumadocs-ui/components/files';

Return to Moria uses INI config files in the server root.

<Files>
  <Folder name="Moria Server" defaultOpen>
    <File name="MoriaServerConfig.ini" />

    <File name="MoriaServerPermissions.txt" />

    <File name="MoriaServerRules.txt" />

    <Folder name="Moria" defaultOpen>
      <Folder name="Saved">
        <Folder name="SaveGamesDedicated" />

        <Folder name="Logs" />
      </Folder>
    </Folder>
  </Folder>
</Files>

***

[Main] Section [#main-section]

| Setting            | Default | Description                                    |
| ------------------ | ------- | ---------------------------------------------- |
| `OptionalPassword` | `""`    | Join password (empty = public, max 1024 chars) |

[World] Section [#world-section]

| Setting                 | Default             | Description               |
| ----------------------- | ------------------- | ------------------------- |
| `Name`                  | `"Brave New World"` | World/server display name |
| `OptionalWorldFilename` | `""`                | Load a specific save file |

[World.Create] Section [#worldcreate-section]

These only apply when creating a **new** world (changing `Name` triggers new creation):

| Setting             | Default    | Values                                      |
| ------------------- | ---------- | ------------------------------------------- |
| `Type`              | `campaign` | `campaign` or `sandbox`                     |
| `Seed`              | `random`   | `random` or integer                         |
| `Difficulty.Preset` | `normal`   | `story`, `solo`, `normal`, `hard`, `custom` |

Custom Difficulty (when preset = custom) [#custom-difficulty-when-preset--custom]

| Setting              | Values                            | Description              |
| -------------------- | --------------------------------- | ------------------------ |
| `CombatDifficulty`   | verylow/low/default/high/veryhigh | Enemy damage & HP        |
| `EnemyAggression`    | low/default/high/veryhigh         | Attack frequency         |
| `SurvivalDifficulty` | verylow/low/default/high          | Hunger, stamina, despair |
| `MiningDrops`        | verylow/low/default/high          | Ore per vein             |
| `WorldDrops`         | verylow/low/default/high          | Enemy loot               |
| `HordeFrequency`     | verylow/low/default/high/veryhigh | Noise-triggered hordes   |
| `SiegeFrequency`     | verylow/low/default/high/veryhigh | Orc base attacks         |
| `PatrolFrequency`    | verylow/low/default/high/veryhigh | Enemy patrol spawns      |

[Host] Section [#host-section]

| Setting            | Default | Description                     |
| ------------------ | ------- | ------------------------------- |
| `ListenPort`       | `7777`  | Game port (UDP)                 |
| `AdvertiseAddress` | `auto`  | `auto`, `local`, or specific IP |

[Performance] Section [#performance-section]

| Setting           | Default | Description                                    |
| ----------------- | ------- | ---------------------------------------------- |
| `ServerFPS`       | `60`    | Server tick rate (30 for low CPU)              |
| `LoadedAreaLimit` | `12`    | Active areas (4–32; reduce to 8 for 4 players) |

Max Players [#max-players]

**8 players** — hardcoded, not configurable. Unlimited registered users.

Port [#port]

| Port     | Protocol | Purpose      |
| -------- | -------- | ------------ |
| **7777** | UDP      | Game traffic |

Crossplay [#crossplay]

Supports Steam, Epic, Xbox Series X|S, PS5. Configure crossplay scope in the config.

Console Commands [#console-commands]

| Command                | Description                   |
| ---------------------- | ----------------------------- |
| `players`              | List connected players        |
| `kick [name]`          | Kick (can rejoin)             |
| `block [name]`         | Permanent ban                 |
| `unblock [name]`       | Remove ban                    |
| `difficulty [preset]`  | Change difficulty             |
| `status`               | Server status                 |
| `regenerateinvitecode` | New join code (after restart) |
| `exit`                 | Save and shutdown             |

Related Guides [#related-guides]

* [Player Permissions](/docs/the-lord-of-the-rings-return-to-moria/permission-setup)
* [How to Join](/docs/the-lord-of-the-rings-return-to-moria/join-server)
