How the query works
The query does not run from your computer but from one of our monitoring locations on the internet, the way a player sees your server from outside. For Minecraft (Java) we use the Server List Ping that the game itself uses for the server list; for Bedrock the RakNet ping. Counter-Strike 2, Rust, ARK, Valheim, Garry's Mod and other Steam games answer the Source engine A2S query, Unreal games such as Tactical Ops and UT99 the GameSpy query.
Without a port we use the game's default port. For Minecraft (Java) we also follow an SRV record, just like the Minecraft client when you only give it a name.