User that changes steam profile name can't establish p2p connection right after [LogEOSP2P] Ignoring IncomingAnswer due to being in the incorrect local state

After changing my steam profile name, I can’t establish a p2p connection.

The initiating client has this in the log:

[LogEOSP2P], Message: Ignoring IncomingAnswer due to being in the incorrect local state. LocalUserId=[000…5ec] RemoteUserId=[000…da0] SessionGuid=[4V1OKv-ZKUuPNEVigZlkmg] State=[Connected] SignalingState=[Stable] ConnectionState=[IceConnectionConnected]

The host they are trying to connect to has this logged:

|00194s:203ms| [EOS_LogMessage]: Category [LogEOSP2P], Message: Reached maximum send attempts for signal message, will not try further. LocalUserId=[000…da0] RemoteUserId=[000…5ac] MessageId=[7] Type=[com.epicgames.p2p.leave_connection] SentTimes=[8/8]

|00204s:387ms| [EOS_LogMessage]: Category [LogEOSP2P], Message: Waiting for PeerConnection task to complete before restarting connection.

|00267s:921ms| [EOS_LogMessage]: Category [LogEOSP2P], Message: Failed to reestablish connection with peer after 30 seconds. LocalUserId=[000…da0] RemoteUserId=[000…5ec] SessionGuid=[4V1OKv-ZKUuPNEVigZlkmg] State=[ConnectionLost] SignalingState=[Stable] ConnectionState=[IceConnectionFailed]

Is there any way to have reliable connections after changing your steam profile name? Or will it just fail for a short period of time after?

Hello, are you able to consistently reproduce this issue? If you are, can you check your logs to see if the network status was set to offline or disabled (you can look for LogEOS: SetNetworkStatus - OldStatus: ). If the network status changed, the issue is likely that you’re not calling EOS_P2P_AddNotifyPeerConnectionRequest and EOS_P2P_AddNotifyPeerConnectionEstablished once the network is back online. We recently fixed this in our UE plugin here. I don’t know if you are using UE, but this change should help guide you in the right direction.

Can you create a private discussion and share a screen recording and a full set of logs for the client changing their display name, and 1 other player that is connected to that player?

We aren’t using UE, so that link returns a 404. We have an in-house game engine.

The network status is never set to offline to repro this.

This doesn’t seem to repro quite as badly when I test today. Seems like there is a very small window between a user changing their steam username and P2P connections being unreliable.

Today I had my host change their steam username while the game was running and then create a lobby. The client then took around 50s to join the lobby.

The host has this in the log:

|00145s:981ms| [EOS_LogMessage]: Category [LogEOSP2P], Message: Failed to reestablish connection with peer after 30 seconds. LocalUserId=[000…411] RemoteUserId=[000…c54] SessionGuid=[-4TKMVDzYEK2RLPWrQJBTg] State=[ConnectionLost] SignalingState=[Stable] ConnectionState=[IceConnectionFailed]

|00178s:264ms| [EOS_LogMessage]: Category [LogEOSP2P], Message: Reached maximum send attempts for signal message, will not try further. LocalUserId=[000…411] RemoteUserId=[000…c54] MessageId=[9] Type=[com.epicgames.p2p.request_connection] SentTimes=[8/8]

The client has this in the log:

|00069s:595ms| [EOS_LogMessage]: Category [LogEOSP2P], Message: Removing connection that has timed out. LocalUserId=[000…c54] RemoteUserId=[000…411] SocketId=[GENERIC] SessionGuid=[J0tIZDBDZU6hAo-RtdXZxQ]

(timestamps are local time since launching the game)