> For the complete documentation index, see [llms.txt](https://docs.anyrpg.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anyrpg.org/anymmo/getting-started/running-your-game.md).

# Running Your Game

## Client Build

To run an AnyMMO client, just ensure that when you create a build profile, you choose one of the non server build types.

## Server Build

There are three ways to run an AnyMMO server.

1. Running a server through the GUI with a normal build.
2. Running a server through the command line with a normal build.
3. Running a server with a server build.

### Server Options

The following options are available at run time and can be configured through the command line or GUI.

<table><thead><tr><th width="138">Name</th><th>Description</th><th width="139">Command Line Switch</th><th width="183">Example</th><th>Default Value</th></tr></thead><tbody><tr><td>Server Mode</td><td><strong>Lobby</strong><br>Players can host their own matches and other players can join.  This mode is meant for Arena PVP/PVE type of play.<br><strong>MMO</strong><br>Players create characters and login to a persistent online world.</td><td><code>--servermode</code></td><td><code>--servermode Lobby</code><br><code>--servermode MMO</code></td><td>MMO</td></tr><tr><td>Port</td><td>The network port the server will listen on and clients will connect to.</td><td><code>--serverport</code></td><td><code>--serverport 1234</code></td><td>7770</td></tr></tbody></table>

### Run A Server Through the GUI With A Normal Build

When making a normal (non server) build, you can choose to run the client or server using the same executable.  To run the server, choose Play Online from the main menu and then click Host Server.

<figure><img src="/files/RcA5EWcrbJRTYpRM8U3Z" alt=""><figcaption></figcaption></figure>

Choose the server mode and port and click Start Server

<figure><img src="/files/wzTWZ3LNkNJbaQlnpraN" alt=""><figcaption></figcaption></figure>

### Run A Server Through The Command Line With A Normal Build

To run a normal (non server) build in server mode through the command line, open a command prompt (terminal) and find the folder with the game executable, then run it with the following flags `-batchmode -nographics`.

<figure><img src="/files/gyua1XiRVICpz9sSqmUG" alt=""><figcaption></figcaption></figure>

### Run A Server With A Server Build

Ensure that the type of server build you want is installed.

<figure><img src="/files/d7TTsrrz2iaMPJX8xW8p" alt=""><figcaption></figcaption></figure>

Click **Add Build Profile**.

<figure><img src="/files/kRiwACzDVtN59Wv0iOHX" alt=""><figcaption></figcaption></figure>

Name your game build and click **Add Build Profile**.

<figure><img src="/files/uypgdWjLKr7h7WCYoTXC" alt=""><figcaption></figcaption></figure>

Click **Add Settings** and then **Scene List**

<figure><img src="/files/5bGO9j1YXzN0vMPckJI1" alt=""><figcaption></figcaption></figure>

Add all the scenes to the scene list that are in the non server build and ensure the profile is active.

<figure><img src="/files/3SpjGmNHz9cuWWVeH1dx" alt=""><figcaption></figcaption></figure>

With the profile active, click **Build**, or **Build And Run**.

<figure><img src="/files/ADGccusTe8omlpr40lsu" alt=""><figcaption></figcaption></figure>

To run the server, just run the executable.  Since this is a server build, no extra command line switches are needed.

<figure><img src="/files/CGUdUrMZeWY0YP3X9Uyr" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.anyrpg.org/anymmo/getting-started/running-your-game.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
