Unable to get correct player count and ping using Steam session in packaged build

We are developing an online multiplayer game and are facing some technical difficulties on some online aspects. The functionality we want to achieve is on the server list widget, when refresh button is clicked, it will update the player count as well as ping number of all servers on the widget. Instead, what we have right now is that player count is always 1 and ping is always 9999. All servers are completely functional and players are able to join to play the game (we have tested it on Steam using our own AppID) but the displayed information is always incorrect. However, when testing inside editor with multiple instances open, those numbers are updated correctly. The following is how we set things up to try to get it working:

When constructing the widget as well as pressing the refresh button, we are calling the RefreshList macro:

239175-4.png

And inside RefreshList macro, we use Find Session Advanced to find available sessions:

And after all available sessions are searched, we update the player count and ping number at the very end:

In terms of updating ping number we are just getting ping number and player count from session result.

We really appreciate it if anyone could let us know the best way to obtain correct player count and ping number.

Having this same issue

I couldn’t find the release notes or the bug tracker link, however I remember it’s been a bug for awhile, and was fixed just recently (I believe in 4.26, but I’m probably wrong.) Not sure which engine version you’re using.

This link looked helpful;

http://www.aclockworkberry.com/ping-9999-issue-on-unreal-engine-steam-session-results/

Anyone every figure out how to fix this? I’m getting the same problem in 2021.

Anyone ever figure out how to fix this? I’m getting the same problem in 2021.

I’m on 4.26.1 and using advanced sessions 4.26.1 but I still have the problem… Basically my problem is that if I set Public Connections to 2 in the CreateAdvancedSession node, then if 2 players join a session the session is no longer returned from FindAvancedSessions (this is fine and makes sense since the session is full). However, if the session is then started and loads up the game, the session shows again with 1/2 people and I’m able to join it, adding a third person to the server.