a2squery

Crates.ioa2squery
lib.rsa2squery
version0.1.2
created_at2025-07-25 04:59:29.194161+00
updated_at2025-07-26 02:15:27.501188+00
descriptionA simple CLI tool for querying Source Dedicated Servers (A2S_INFO)
homepagehttps://github.com/km-clay/a2squery
repositoryhttps://github.com/km-clay/a2squery
max_upload_size
id1767202
size1,686,978
Kyler Clay (km-clay)

documentation

README

a2squery

A tool for extracting A2S query information from Source Dedicated Servers.

Usage

Usage: a2squery --host <HOST> --port <PORT>

Options:
      --host <HOST>  Server hostname or IP
      --port <PORT>  The server's query port
  -h, --help         Print help
  -V, --version      Print version

Example:
	a2squery --host 127.0.0.1 --port 27015

To use a2squery simply provide an IP or domain name to the --host flag, and a port number to the --port flag. The output will look like this:

{
  "protocol_ver": 17,
  "server_name": "Team Fortress",
  "map_name": "cp_snakewater_final1",
  "game_dir": "tf",
  "game_name": "Team Fortress",
  "app_id": 440,
  "current_players": 0,
  "max_players": 24,
  "bots": 0,
  "server_type": "Dedicated",
  "os_type": "Linux",
  "visibility": "Public",
  "vac_enabled": true,
  "game_version": "9925705",
  "extra_data": [
    {
      "GameID": 13085927436482341255
    }
  ]
}

To install it using cargo:

cargo install a2squery

Have fun.

Commit count: 0

cargo fmt