CodeLogic.GameNetQuery
3.2.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CodeLogic.GameNetQuery --version 3.2.4
NuGet\Install-Package CodeLogic.GameNetQuery -Version 3.2.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeLogic.GameNetQuery" Version="3.2.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeLogic.GameNetQuery" Version="3.2.4" />
<PackageReference Include="CodeLogic.GameNetQuery" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeLogic.GameNetQuery --version 3.2.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CodeLogic.GameNetQuery, 3.2.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeLogic.GameNetQuery@3.2.4
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeLogic.GameNetQuery&version=3.2.4
#tool nuget:?package=CodeLogic.GameNetQuery&version=3.2.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CL.GameNetQuery
Game server query library for CodeLogic 3 -- Valve Source Engine (CSS, CS2) and Minecraft server queries via UDP and RCON.
Install
dotnet add package CodeLogic.GameNetQuery
Quick Start
// Valve Source Engine -- UDP query (no password needed)
var serverInfo = await ValveUdpQuery.GetServerInfoAsync("192.168.1.10", 27015);
Console.WriteLine($"{serverInfo?.Hostname} - {serverInfo?.PlayerCount}/{serverInfo?.MaxPlayers}");
var players = await ValveUdpQuery.GetPlayerListAsync("192.168.1.10", 27015);
// Valve RCON -- authenticated commands
using var rcon = new ValveRconClient("192.168.1.10", 27015, "rconpassword");
if (await rcon.ConnectAsync())
{
var response = await rcon.SendCommandAsync("status");
Console.WriteLine(response);
}
// Minecraft -- UDP query
var mcResponse = MinecraftQueryClient.QueryServer("192.168.1.20", 25565);
var motd = MinecraftQueryClient.GetStatusValue(mcResponse, "hostname");
Features
- Valve A2S_INFO -- query Source Engine server name, map, player count, and metadata via UDP
- Valve A2S_PLAYER -- retrieve the full player list with scores and play durations
- Valve RCON -- authenticate and execute remote console commands over TCP
- Minecraft query -- GameSpy4 UDP protocol for server status and player info
- Zero configuration -- all query classes are static or standalone; no config file needed
Configuration
CL.GameNetQuery does not require a configuration file. All query clients accept connection parameters directly.
Documentation
Full API docs: https://github.com/Media2A/CodeLogic.Libs
Requirements
- .NET 10.0+
- CodeLogic 3.0.0+
License
MIT -- see LICENSE for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- CodeLogic (>= 3.2.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.5.2 | 92 | 5/24/2026 |
| 4.5.1 | 84 | 5/24/2026 |
| 4.5.1-preview.56 | 43 | 5/24/2026 |
| 4.4.2-preview.53 | 46 | 5/24/2026 |
| 4.4.1 | 90 | 5/24/2026 |
| 4.0.5 | 92 | 5/15/2026 |
| 4.0.4 | 94 | 5/9/2026 |
| 4.0.3 | 99 | 5/9/2026 |
| 3.2.12 | 595 | 4/18/2026 |
| 3.2.11 | 102 | 4/18/2026 |
| 3.2.10 | 94 | 4/18/2026 |
| 3.2.9 | 94 | 4/18/2026 |
| 3.2.8 | 94 | 4/18/2026 |
| 3.2.7 | 92 | 4/18/2026 |
| 3.2.6 | 96 | 4/18/2026 |
| 3.2.5 | 103 | 4/18/2026 |
| 3.2.4 | 98 | 4/17/2026 |
| 3.2.3 | 106 | 4/17/2026 |
| 3.2.2 | 154 | 4/17/2026 |
| 3.2.0 | 95 | 4/17/2026 |
Loading failed