This is the Game Coordinator / STUN server to assist in OpenTTD players to play together.
This server is written in Python 3.8 with aiohttp, and makes strong use of asyncio.
- Python3.8 or higher.
- Redis
To start it, you are advised to first create a virtualenv:
python3 -m venv .env
.env/bin/pip install -r requirements.txt
Make sure you have a local redis running. For example via Docker:
docker run --rm -p 6379:6379 redis
You can start the Game Coordinator server by running:
.env/bin/python -m game_coordinator --db redis --app coordinator --shared-secret test --web-port 12345
You can start the STUN server by running:
.env/bin/python -m game_coordinator --db redis --app stun --web-port 12346
docker build -t openttd/game-coordinator:local .
docker run --rm -p 127.0.0.1:3976:3976 openttd/game-coordinator:local
docker build -t openttd/game-coordinator:local .
docker run --rm -p 127.0.0.1:3975:3975 openttd/game-coordinator:local --app stun --bind 0.0.0.0 --db redis --redis-url redis://redis