UE 5.3.2 Can't get Steam Sockets plugin to work

Hello, I’ve been having great difficulties with the OnlineSteamSubsystem. When I launch a packaged build using the -NOSTEAM argument, I can host and join LAN games with no problem. (Separate devices, both devices own the Steam game.)

However, whenever I run the game normally, I cannot get others to find a session online. Also when I host on LAN, the session is discoverable, but not joinable. This is the log when you try to join a LAN game.

What else should I try doing? Any plugins to disable/enable? Any debug commands to run? I’m still running a very basic UE5 project that has very little in it except the General Movement Component 2.0 beta plugin. However, I doubt that is the culprit since I can host/join when I run the game with -NOSTEAM.

Additionally, here is my DefaultEngine.ini with some bits redacted.

[URL]
GameName=<REDACTED>
Port=27015
PeerPort=27015
QueryPort=27015

[/Script/EngineSettings.GameMapsSettings]
EditorStartupMap=/Game/_Assets/Maps/MainMenu.MainMenu
GameDefaultMap=/Game/_Assets/Maps/MainMenu.MainMenu
TransitionMap=
bUseSplitscreen=True
TwoPlayerSplitscreenLayout=Horizontal
ThreePlayerSplitscreenLayout=FavorTop
GlobalDefaultGameMode=/Game/_Assets/Blueprints/DefaultGameMode.DefaultGameMode_C
GlobalDefaultServerGameMode=None

[/Script/Engine.RendererSettings]
r.ReflectionMethod=1
r.GenerateMeshDistanceFields=True
r.DynamicGlobalIlluminationMethod=1
r.Lumen.TraceMeshSDFs=0
r.Shadow.Virtual.Enable=1
r.Mobile.EnableNoPrecomputedLightingCSMShader=1
r.DefaultFeature.AutoExposure.ExtendDefaultLuminanceRange=True
r.DefaultFeature.AutoExposure.ExtendDefaultLuminanceRange=true
r.SkinCache.CompileShaders=True
r.RayTracing=True
r.DefaultFeature.LocalExposure.HighlightContrastScale=0.8
r.DefaultFeature.LocalExposure.ShadowContrastScale=0.8
r.DefaultFeature.AutoExposure=False
r.DefaultFeature.AutoExposure.Method=2
r.VirtualTextures=True

[/Script/WindowsTargetPlatform.WindowsTargetSettings]
DefaultGraphicsRHI=DefaultGraphicsRHI_DX12
-D3D12TargetedShaderFormats=PCD3D_SM5
+D3D12TargetedShaderFormats=PCD3D_SM6
-D3D11TargetedShaderFormats=PCD3D_SM5
+D3D11TargetedShaderFormats=PCD3D_SM5
Compiler=Default
AudioSampleRate=48000
AudioCallbackBufferFrameSize=1024
AudioNumBuffersToEnqueue=1
AudioMaxChannels=0
AudioNumSourceWorkers=4
SpatializationPlugin=
SourceDataOverridePlugin=
ReverbPlugin=
OcclusionPlugin=
CompressionOverrides=(bOverrideCompressionTimes=False,DurationThreshold=5.000000,MaxNumRandomBranches=0,SoundCueQualityIndex=0)
CacheSizeKB=65536
MaxChunkSizeOverrideKB=0
bResampleForDevice=False
MaxSampleRate=48000.000000
HighSampleRate=32000.000000
MedSampleRate=24000.000000
LowSampleRate=12000.000000
MinSampleRate=8000.000000
CompressionQualityModifier=1.000000
AutoStreamingThreshold=0.000000
SoundCueCookQualityIndex=-1

[/Script/HardwareTargeting.HardwareTargetingSettings]
TargetedHardwareClass=Desktop
AppliedTargetedHardwareClass=Desktop
DefaultGraphicsPerformance=Maximum
AppliedDefaultGraphicsPerformance=Maximum

[/Script/AndroidFileServerEditor.AndroidFileServerRuntimeSettings]
bEnablePlugin=True
bAllowNetworkConnection=True
SecurityToken=43F4FDFA4CD3C1744937DAB62821F658
bIncludeInShipping=False
bAllowExternalStartInShipping=False
bCompileAFSProject=False
bUseCompression=False
bLogFiles=False
bReportStats=False
ConnectionType=USBOnly
bUseManualIPAddress=False
ManualIPAddress=

[/Script/Engine.PhysicsSettings]
bSubstepping=False

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

[OnlineSubsystem]
DefaultPlatformService=Steam
PollingIntervalInMs=20

[OnlineSubsystemSteam]
bEnabled=true
bUsesPresence=true
bRelaunchInSteam=false
bInitServerOnClient=true
bUseLobbiesIfAvailable=true
SteamDevAppId=<REDACTED>
bUseSteamNetworking=true
bAllowP2PPacketRelay=true
GameServerQueryPort=27015
P2PConnectionTimeout=90

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

[Core.Log]
LogOnline=VeryVerbose

[ConsoleVariables]
net.CurrentHandshakeVersion=2
net.MinHandshakeVersion=2

i would recomend to use the Steam Advanced Session Plugin to do the LAN / WLAN / Internet connections for your Game via Steam…

one more thing… please remove your AndroidFileServerEditor Security Token… this Token you should never give any other person…

1 Like

Lol rip. No edit post button is popping up for me. Good thing it’s not targeted for android. I’ll have to reset that if it changes.

Yeah, I think advanced sessions is probably the way to go. Seems like everyone uses it. I got to play around with it, and it got internet connections working through Steam but broke LAN, for whatever reason. I’ve been busy with other projects so I haven’t had a chance to troubleshoot why that may be.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.