Pinging Steam Lobbies and Servers

As of SteamCore:: 1.18 you can now ping lobbies using Blueprints and the SteamSockets Plugin (built into unreal engine)!

Requirements

Getting Started

Enable the SteamSockets Plugin

DefaultEngine.ini

Enabling the SteamSockets Plugin

[URL]
GameName=GameName
Port=7777

[OnlineSubsystemSteam]
SteamDevAppId=480
SteamAppId=480
bVACEnabled=True
bEnabled=True
bUseSteamNetworking=True

[OnlineSubsystem]
DefaultPlatformService=Steam

[/Script/Engine.Engine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="SteamSockets.SteamSocketsNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")

[/Script/OnlineSubsystemUtils.IpNetDriver]
MaxClientRate=1000000000
MaxInternetClientRate=1000000000
InitialConnectTimeout=120.0

[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="SteamSockets.SteamSocketsNetConnection"

Setting up Lobby Ping Data

Create a Lobby and set the HOST_PING data

Getting ping value

This will print the ping value from the lobby owner
Get the ping value and assign it to UMG / lobby list

The Result

The unknown lobbies are because of using Steam AppID 480, it will list irrelevant lobbies.