I’ve read other threads so what it seems so far is that Steam doesn’t support LAN sessions. However, line 774 of OnlineSessionInterfaceSteam is a function called FindLanSession() that gets called when I try and find a session.
And it does find the session, however when I try and join it it times out:
[2021.11.06-09.52.35:464][126]LogNet: Warning: UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 20.02, Real: 20.02, Good: 20.02, DriverTime: 20.03, Threshold: 20.00, [UNetConnection] RemoteAddr: 192.168.0.49:7777, Name: SteamNetConnection_2147482455, Driver: PendingNetDriver SteamNetDriver_2147482456, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
[2021.11.06-09.52.35:464][126]LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = ConnectionTimeout, ErrorString = UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 20.02, Real: 20.02, Good: 20.02, DriverTime: 20.03, Threshold: 20.00, [UNetConnection] RemoteAddr: 192.168.0.49:7777, Name: SteamNetConnection_2147482455, Driver: PendingNetDriver SteamNetDriver_2147482456, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID, Driver = PendingNetDriver SteamNetDriver_2147482456
[2021.11.06-09.52.35:464][126]LogNet: Warning: Network Failure: PendingNetDriver[ConnectionTimeout]: UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 20.02, Real: 20.02, Good: 20.02, DriverTime: 20.03, Threshold: 20.00, [UNetConnection] RemoteAddr: 192.168.0.49:7777, Name: SteamNetConnection_2147482455, Driver: PendingNetDriver SteamNetDriver_2147482456, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
[2021.11.06-09.52.35:464][126]LogNet: NetworkFailure: ConnectionTimeout, Error: 'UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 20.02, Real: 20.02, Good: 20.02, DriverTime: 20.03, Threshold: 20.00, [UNetConnection] RemoteAddr: 192.168.0.49:7777, Name: SteamNetConnection_2147482455, Driver: PendingNetDriver SteamNetDriver_2147482456, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID'
One suggestion was to put Steam into ‘offline mode’ so that OnlineSubSystemNull is used but that doesn’t happen, it still uses OnlineSubsystemSteam.
Another suggestion was to run the game without Steam but that’s impossible to do if it was purched via Steam, as far as I know.
This is with SessionSearch->bIsLanQuery = true; in the FindSession code and SessionSettings.bIsLANMatch = true; in the CreateSession code.
Thanks.