ageLANServer
Docker app from indyone's Repository
LAN server emulator for Age of Empires: DE (AoE1), Age of Empires II: DE (AoE2) and Age of Empires III: DE (AoE3).
Requirements
Port 443 must be free on the host IP used by this container.
For a single game: host networking is the simplest option (port 443 must be free on the host).
For multiple games: create an ipvlan L2 custom network (Settings > Docker > Docker custom networks)
and assign each container a unique LAN IP — this avoids the port 443 and UDP 31978 conflicts that
occur when multiple containers share the same host network stack. ipvlan is preferred over macvlan
as it does not require promiscuous mode on the host NIC.
Overview
Readme
View on GitHub
ageLANServer
ageLANServer is a LAN server emulator for the Age of Empires Definitive Edition games, developed by luskaner. It replaces the online services (accounts, profiles and the lobby list) with a server running on your Unraid box, so you can play multiplayer over your local network without an internet connection. The game on each PC connects to it with a launcher.
This template covers the original three games. It has no BattleServer; for Age of Empires IV or Age of Mythology: Retold use ageLANServer-BattleServer.
Template: templates/ageLANServer.xml
Image: ghcr.io/indyone/agelanserver
Upstream: luskaner/ageLANServer
Supported games
Age of Empires: Definitive Edition
Age of Empires II: Definitive Edition
Age of Empires III: Definitive Edition
Configuring the Unraid template
Settings
| Setting | Container path / variable | Default | Purpose |
|---|---|---|---|
| Game | GAMES |
age2 |
The game this container serves (see below). |
| Certificates Path | /app/resources/certificates |
/mnt/user/appdata/agelanserver/certificates |
SSL certificates, generated on first run. Keep it so they survive restarts. |
| Config Path | /app/resources/config |
/mnt/user/appdata/agelanserver/config |
Server configuration (see config.toml). |
| Logs Path | /app/logs |
/mnt/user/appdata/agelanserver/logs |
Log files. Add --log to Post Arguments for detailed logging. |
Each container runs one game. Set GAMES to one of:
GAMES value |
Game |
|---|---|
age1 |
Age of Empires: Definitive Edition |
age2 (default) |
Age of Empires II: Definitive Edition |
age3 |
Age of Empires III: Definitive Edition |
The template uses host networking. Port 443 must be free on the host.
config.toml
On the first start the config folder is filled with the per-game folders (do not delete them) and a
fully commented config.toml.example. Rename it to config.toml, edit it, and restart the container.
Multiple games
Each container serves one game, so for several games run one container per game:
- With host networking only one container can use port
443, so create an ipvlan L2 network (Settings > Docker > Docker custom networks) and give each container its own LAN IP. ipvlan is preferred over macvlan because it does not need promiscuous mode. - Use separate appdata folders for each container, for example
.../appdata/agelanserver-aoe2/.... - Name each container after its game:
agelanserver-aoe2,agelanserver-aoe3, ...
Playing the game
Hosting a game
When you create a lobby:
- Choose Use Local Lan Server in the game's Server list.
Connecting from your PC
Use the launcher from the
upstream releases. In resources/config.toml set:
[Server]
Start = 'false'
Host = '<your server IP>'
Then run the game's start script (for example start_age2.bat) as administrator. The launcher
points the game at your server and undoes its changes when you quit.
Troubleshooting
- Multiplayer is greyed out. The server's data is for the newest game build. Update the game (check it is the copy the launcher starts).
- "Could not create game. Unknown error". Choose Use Local Lan Server when creating the lobby.
- The container keeps restarting. Open the container's log. Port
443must be free on the host.
About the image
ageLANServer is developed by luskaner. The Docker image comes from my fork, indyone/ageLANServer:
- Kept in sync with upstream. A GitHub Actions workflow merges
luskaner/ageLANServerinto the fork every day, and every change to the source rebuilds the images and publishes them to the GitHub Container Registry. - The server itself is untouched. The fork only adds files: a Docker setup under
tools/server-docker-unifiedand the build workflows.
What the fork adds so that it works well on Unraid:
- One image instead of two. Upstream's Docker setup runs the certificate generator and the server as separate containers. Here they are combined: the SSL certificates are generated on the first start and reused afterwards.
- Volumes that work with Unraid shares. Per-game config files and a commented
config.toml.exampleare placed into the config folder on first run, so a bind-mounted appdata folder works from the start. - One game per container, chosen with the
GAMESvariable, so several games never fight over port443or the UDP discovery port. - An optional BattleServer, in the ageLANServer-BattleServer
image, which runs the game's own
BattleServer.exeunder Wine next to the server. - The Unraid templates in this repository.
Support
- Unraid setup (this template, the Docker image, volumes, networking, installing on Unraid): open an issue here.
- The server software itself (game behaviour, launcher, bugs, feature requests): supported by its original author, luskaner/ageLANServer issues.
Categories
Related apps
Explore more like this
Explore allLinks
Details
ghcr.io/indyone/agelanserver:latestRuntime arguments
- Network
host- Shell
sh- Privileged
- false
- Extra Params
--restart=unless-stopped
Template configuration
Persistent storage for the server's SSL certificates. Generated automatically on first run; keep this mounted so the certificates survive restarts and clients keep trusting the server.
- Target
- /app/resources/certificates
- Default
- /mnt/user/appdata/agelanserver/certificates
- Value
- /mnt/user/appdata/agelanserver/certificates
Server configuration. On first run the per-game folders (do not delete them) and a fully commented config.toml.example are placed here. Rename the example to config.toml and edit it to change authentication, announce settings, BattleServers, etc. Restart the container after editing.
- Target
- /app/resources/config
- Default
- /mnt/user/appdata/agelanserver/config
- Value
- /mnt/user/appdata/agelanserver/config
Server log files. Detailed file logging is off by default; add --log to Post Arguments (Advanced View) to enable it.
- Target
- /app/logs
- Default
- /mnt/user/appdata/agelanserver/logs
- Value
- /mnt/user/appdata/agelanserver/logs
The single game this container serves: age2 (AoE II: DE), age1 (AoE: DE) or age3 (AoE III: DE). For AoE IV or AoM use the ageLANServer-BattleServer template, which includes the BattleServer they need. To serve another game, run a second container with its own IP (ipvlan network) and its own appdata folders.
- Target
- GAMES
- Default
- age2|age1|age3
- Value
- age2