Need Help with Steam Sockets

I’m at my wit’s end with this. I get this steam sockets error whenever I try and create a session using the online subsystems session’s interface.


All of the plugins are enabled (OnlineSubstems, OnlineSubsystemsSteam, OnlineSubsystemsNull), and I have edited the Build.cs file adding them all as private module dependencies. I have changed by DefaultEngine.ini file to what the docs have told me to.

It seems to initialise correctly according to the log file:

[2022.07.14-16.02.15:224][  0]LogSockets: SteamSockets: Initializing Network Relay
...
[2022.07.14-16.02.15:239][  0]LogSteamSocketsAPI: Verbose: SteamSockets API: Log Certificate expires in 24h06m at 1657901327 (current time 1657814534), will renew in 22h06m
[2022.07.14-16.02.15:313][  0]LogSteamSocketsAPI: Warning: SteamSockets API: Warning SDR network config fetch first attempt failed.  HTTP 504.  .  Trying again.
...
[2022.07.14-16.02.15:488][  0]LogSteamSocketsAPI: Verbose: SteamSockets API: Log Got SDR network config.  Loaded revision 378 OK
[2022.07.14-16.02.15:489][  0]LogSteamSocketsAPI: Verbose: SteamSockets API: Log Performing ping measurement
[2022.07.14-16.02.15:489][  0]LogSteamSocketsAPI: Verbose: SteamSockets API: Log SDR RelayNetworkStatus:  avail=Attempting  config=OK  anyrelay=Attempting   (Performing ping measurement)
[2022.07.14-16.02.15:490][  0]LogSteamSocketsAPI: Verbose: SteamSockets API: Log AuthStatus (steamid:76561198033513709):  OK  (OK)

Despite this, I still get the errors shown in the first image whenever I try and create a session. This is the code I am using to create my session.

FOnlineSessionSettings SessionSettings;
	SessionSettings.bAllowJoinInProgress = true;
	SessionSettings.bIsDedicated = false;
	SessionSettings.bIsLANMatch = true; // change when using steam
	SessionSettings.bShouldAdvertise = true;
	SessionSettings.bUsesPresence = true;
	SessionSettings.NumPublicConnections = 5;
	SessionSettings.bUseLobbiesIfAvailable = true;

	SessionInterface->CreateSession(0, FName("Host Sesh"), SessionSettings);

If I disable the steam stuff I can get a lan session to work just fine, and can connect from another client locally. The lack of documentation on this means I have hit a brick wall, and I’m really not sure what else to do at this point. Any help would be appreciated, thanks.

I ran into the same issue. Did you find a solution to your problem?

My solution was to disable the steam sockets plugin and use the default steam net driver.

My DefaultEngine.ini setup was this

[/Script/Engine.GameEngine]
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")

[OnlineSubsystem]
DefaultPlatformService=Steam

[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480
SteamAppId=480
GameServerQueryPort=27015
bInitServerOnClient=true

[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName=OnlineSubsystemSteam.SteamNetConnection
2 Likes

I’ve had issues with this the last day, and a game that has been working perfectly fine for about 2 years.
Was working, didn’t change anything.

Could just be my ISP’s routing or something.

Now my sessions work fine and everything seems fine, but i cant query the unique id of the player since yesterday, and cannot query their “online” status…

Ill try move back to SteamNetDriver and see if it clears things up.

Thanks.

Thanks. I made a connection on 5.1. But now, I can’t see right ping when searching sessions. I hope it’ll fixed on 5.1.1. :slight_smile:

Update: It doesn’t work with shipping build :confused: Development build was working. Do I need to change plugin or wait for next Engine update?