Lets players of the UC2 native port find each other and play system-link matches over the internet. One Python file, standard library only, no game data. Players never need to forward ports; only the server does.
scp server/uc2_lobby_server.py server/install.sh root@YOUR_SERVER:/root/uc2-lobby-install/
ssh root@YOUR_SERVER 'bash /root/uc2-lobby-install/install.sh'Options: --port N (default 39200), --motd "text", --no-firewall,
--uninstall. The service runs sandboxed as a dynamic unprivileged user. The
installer opens the port in ufw or firewalld when one is active; on a cloud
host, also allow TCP and UDP on the port in the provider's firewall.
- Status:
systemctl status uc2-lobby - Logs:
journalctl -u uc2-lobby -f - Update: run
install.shagain with the newuc2_lobby_server.py.
python3 uc2_lobby_server.py --port 39200 --motd "Hello"In the launcher's Online tab, enter server-address:39200.
Each is enforced: 32-character names, 64 lobbies, 512 players, 16 players per lobby, 8 connections per IP address, 20 lobby messages per second, 2,000 relayed packets (2 MB) per second per player, 1,514-byte packets (one Ethernet frame). The relay only forwards between members of one lobby, and only from the address a player connected from, so it cannot be used to send traffic to anyone else.
Tests: python3 -m unittest server/test_uc2_lobby_server.py. Wire format:
PROTOCOL.md.