---
title: "Host your first BattleSpades server"
description: "Step-by-step guide to hosting an Ace of Spades: Battle Builder server with BattleSpades on Windows, Linux or macOS: requirements, portable download, source build, first launch and first connection."
canonical: "https://www.aosplay.net/guides/server/getting-started"
markdown: "https://www.aosplay.net/docs/guides/server/getting-started.md"
last_updated: "2026-09-28"
section: "BattleSpades server hosting guides"
keywords: ["host Ace of Spades server","BattleSpades setup","Ace of Spades dedicated server Windows","Ace of Spades server Linux","Battle Builder private server"]
---

# Host your first BattleSpades server

> Step-by-step guide to hosting an Ace of Spades: Battle Builder server with BattleSpades on Windows, Linux or macOS: requirements, portable download, source build, first launch and first connection.

BattleSpades is the open-source dedicated server for Ace of Spades: Battle Builder. This guide takes you from nothing to a running server you can join, on Windows, Linux or macOS, without prior server experience.

## What you need

_A computer that stays on while people play, a network that lets UDP traffic in, and players with a compatible client._

| Item | Requirement |
| --- | --- |
| Operating system | Windows, Linux or macOS. Portable builds exist for x86-64 and ARM64 of each. |
| CPU | The server simulates everyone at a fixed 60 ticks per second. One free CPU core per busy server is a comfortable start. |
| Memory | Measured during the beta: roughly 80–200 MB per server after a map loads, plus 30–60 MB for bots. Very small 512 MB VPS plans ran out of memory; 1 GB or more is a safe start for one or two servers. |
| Network | Inbound UDP on the game port (default `27015`). A home connection works with port forwarding; a VPS works with its firewall opened. |
| Players | The original Steam game, the non-Steam client, or the open-source revival client. All speak protocol 168. |
| Source build only | Python 3.10–3.12 (3.12 recommended) and a C/C++ compiler. |

> **Choose a path: Portable, source or Docker.** **Portable release**: download, extract, run — no Python or compiler. Best for most hosts. **Source**: clone and build; best if you want to change code or follow `main`. **Docker**: best for Linux VPS fleets; see the [Docker guide](https://www.aosplay.net/guides/server/docker).

## Option A: portable release

Open the [download page](https://www.aosplay.net/download#server) and download the archive for your system: `windows-x86_64`, `windows-arm64`, `linux-x86_64`, `linux-arm64`, `macos-x86_64` or `macos-arm64`. Each archive contains the launcher, the Python runtime, `config.toml`, the maps, prefabs, the plugin folder and license notices.

1. **Verify.** Compare the ZIP against the release's `SHA256SUMS.txt` (for example `certutil -hashfile file.zip SHA256` on Windows or `sha256sum file.zip` on Linux).
2. **Extract everything.** Extract the whole folder. Do not copy only the executable: maps, native libraries and config must sit next to it.
3. **Set the admin password.** Open `config.toml` in a text editor and set `[admin] password` to a unique secret of at least 12 characters (see below).
4. **Run the check.** Run `--check` once. It validates the config, maps, native modules, prefabs and the bot worker without opening the game port.
5. **Start.** Run the executable without arguments. Leave the window open; closing it stops the server.

**Windows (PowerShell, inside the extracted folder)**

~~~powershell
.\BattleSpades.exe --check
.\BattleSpades.exe
~~~

**Linux or macOS (terminal, inside the extracted folder)**

~~~bash
./BattleSpades --check
./BattleSpades
~~~

The macOS build is unsigned and not notarized, so Gatekeeper may ask you to allow it explicitly (System Settings → Privacy & Security).

## Option B: build from source

Install Python 3.12 and a compiler first. The compiler builds the Cython physics/map/packet core and the bundled ENet networking library.

| System | Compiler |
| --- | --- |
| Windows | Visual Studio Build Tools with the “Desktop development with C++” workload |
| Debian / Ubuntu | `sudo apt install build-essential python3-dev` |
| Fedora / RHEL | `sudo dnf install gcc python3-devel` |
| macOS | `xcode-select --install` |

**Windows (PowerShell)**

~~~powershell
git clone https://github.com/KikoTs/BattleSpades.git
cd BattleSpades
py -3.12 -m venv venv
.\venv\Scripts\Activate.ps1
python -m pip install -r requirements.txt
python setup.py build_ext --inplace
python run_server.py --check
python run_server.py
~~~

**Linux or macOS**

~~~bash
git clone https://github.com/KikoTs/BattleSpades.git
cd BattleSpades
python3.12 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python setup.py build_ext --inplace
python run_server.py --check
python run_server.py
~~~

The repository also has one-step installers that do the dependency install and build for you: `./scripts/install.sh` (Linux/macOS) and `.\scripts\install.ps1` (Windows).

> **Rebuilding: Stop the server before rebuilding.** A running server locks the compiled `.pyd`/`.so` files. Stop it, then run `setup.py build_ext --inplace` again after every update that touches `.pyx` files.

## The five settings to change first

Everything lives in `config.toml` next to the server. The server reads it once at startup, so restart after editing. The shipped file is a complete, commented example; you only need to touch a few keys to begin.

**config.toml — minimal changes**

~~~toml
[server]
name = "My AoS Server"        # max 31 characters are shown
port = 27015
max_players = 24

[game]
default_mode = "ctf"           # tdm ctf cctf zom vip mh tc dia dem oc arena
default_map = "CastleWars"     # a .vxl name from maps/, without .vxl

[admin]
password = "a-long-unique-secret"  # 12+ characters, not changeme
~~~

- **Name**: what players see in the browser and scoreboard.
- **Mode and map**: see [Game modes and maps](https://www.aosplay.net/guides/server/modes-and-maps) for the retail map pool of each mode.
- **Admin password**: in-game `/admin` login is disabled while it is `changeme`, empty or shorter than 12 characters. The server still runs, but you cannot moderate.
- **Bots**: the sample config backfills up to 12 bots when the server is empty. See [Bots](https://www.aosplay.net/guides/server/bots) to change or disable that.
- **AoSPlay listing**: `[revival] enabled = true` does nothing until you register and set a token; see [Ports and public listing](https://www.aosplay.net/guides/server/network-and-listing).

> **Common trap: Save the file without a BOM.** Some Windows editors (and PowerShell `Set-Content -Encoding utf8`) add a UTF-8 byte-order mark. The TOML parser then fails and the server silently falls back to built-in defaults. Use Notepad's “UTF-8” (not “UTF-8 with BOM”), VS Code, or Notepad++.

To keep personal tweaks separate, copy the file to `config.local.toml` and start with `--config config.local.toml`. `--port 27020` overrides only the port for one run. Every key is explained in the [configuration reference](https://www.aosplay.net/guides/server/configuration).

## Start and join

A healthy `--check` prints one `OK` line per item. A warning about the admin password means you have not changed it yet.

**Example --check output**

~~~text
OK version: 0.1.0-beta.1
OK config.toml: C:\Games\BattleSpades\config.toml
OK maps: 28 VXL files; default=MayanJungle.vxl
OK native imports: 8 modules
OK Steam discovery: disabled
OK prefabs: 40 KV6 files
OK worker spawn: AI child processed full map MayanJungle.vxl ...
~~~

1. **Same computer.** Start your game client and use its direct-connect option with `127.0.0.1:27015`. This proves the server runs.
2. **Same network.** From another device on your LAN, connect to the host's local address, e.g. `192.168.1.20:27015`. This proves the OS firewall lets UDP in.
3. **Internet.** Forward the port on your router and test from a different connection (a phone hotspot works). Details: [Ports and public listing](https://www.aosplay.net/guides/server/network-and-listing).
4. **Become admin.** In game, open chat and type `/admin your-password`. Try `/help` to see every command you now have.

Logs are written to `logs/server.log` beside the server (rotated at 16 MB, 3 backups) and to the console. Crash stack traces go to `logs/server.fault.log`. To stop the server press Ctrl+C in its window.

## Where to go next

- [Ports and public listing](https://www.aosplay.net/guides/server/network-and-listing): firewall, router, AoSPlay and Steam listing.
- [Game modes and maps](https://www.aosplay.net/guides/server/modes-and-maps): rotation, votes, match length.
- [Admin and moderation](https://www.aosplay.net/guides/server/moderation): bans, anti-cheat, AFK and griefing.
- [Multiple servers and updates](https://www.aosplay.net/guides/server/fleet-and-updates): run many modes from one install and upgrade safely.
- [Troubleshooting](https://www.aosplay.net/guides/server/troubleshooting): when something does not work.

## Frequently asked questions

### Do players need Python?

No. Players only need a compatible game client. Portable server releases do not need Python either.

### Can I run a server and play on the same PC?

Yes. Start the server, then connect your client to `127.0.0.1:27015`. For others to join, the port still has to be reachable from the internet.

### Should I raise tick_rate for smoother play?

No. Keep `tick_rate = 60`. The client's physics and the server's reconciliation are calibrated to 60 Hz; other values break movement such as jumping.

### Which version am I running?

Run the server with `--version`. This site's guides were generated from BattleSpades 0.1.0-beta.1.

---

Source: [Host your first BattleSpades server](https://www.aosplay.net/guides/server/getting-started)  
Ace of Spades Revival is an independent community project, not affiliated with the original publisher. Community Discord: https://discord.gg/aosbb
