Get stats on a Valheim server that is set to private

Hello fellow Vikings!

I have a question about dedicated server hosting that I can't seem to find an answer to. I host a few servers for various groups of friends. They're all hosted with docker containers and everything (mostly) works as expected. I have all the servers set to private, and I give people the TLD and port number and everything works.

What I want, is a way to query the game port and have it return the same basic statistics that are returned by the in-game server browser. When I load the game and hit join server, it lists the recent servers I've connected to. One by one, the little icon to the right updates, and the version of the server and active player counts appear.

Does anyone know how those statistics are queried? I've looked at a few steam game query libraries (gamedig, as an example), and they all only work if the server is set to public. I don't need or want to set my servers to public, and obviously it's possible to get some basic information back when the server is not public.

Thanks for your help!

Skål!