Simple Python script to query a UT2004 server for current game information. Features/displays:
- Server name
- Number of human players / total players
- Player names, scores, pings, and their team
- Current map; if a map change is detected, it will flash the taskbar on Windows and flash text in the program window
- Refreshes every five seconds
Uses the GameSpy port to communicate which is GamePort+10 (default 7787).
Note
A Windows standalone executable is provided in Releases if you do not want to install Python.
- Requires Python to be installed - check Add Python to PATH in the installer
- After installing Python, run
pip install colorama; a required dependency (you can type this in cmd.exe)
Tested to work on Windows 7 / Python 3.8 and Windows 10 21H2 / Python 3.10.
The program can either be double-clicked or run via command line.
Enter the server as one of:
- IP or hostname (e.g., 10.0.0.1 or ut2004.server)
- IP:GameSpyPort (e.g., 10.0.0.1:7787 - the GameSpy port is GamePort+10)
- UT2004 URL (e.g., ut2004://10.0.0.1:7777)
Depending on your platform, you can paste via right clicking.
The syntax for CLI is as follows:
UT2004ServerMonitor.py IPorUT2004ServerMonitor.py HOSTNAMEwhich will use the default GameSpy port (7787).UT2004ServerMonitor.py IP:GameSpyPortfor non-standard ports.UT2004ServerMonitor.py UT2004://IP:GamePortfor UT2004 URLs.
You can of course create a shortcut to save yourself from having to enter the server address for a given server every single time. Simply add a space to the "Target" field of the shortcut and enter the server address there.



