GameNetworkingSockets icon indicating copy to clipboard operation
GameNetworkingSockets copied to clipboard

Able to send messages A->B, but unable to send B->A with ISteamNetworkingMessages

Open djdron opened this issue 4 years ago • 5 comments

I've spotted strange thing with ISteamNetworkingMessages. I have 2 computers. When computer A started connection by sending messages to computer B, all fine, connection established via web rtc (ICE) and data transferred A<->B bidirectionally. But when computer B started connection by sending messages to A, connection is not established. I have web rtc & GameNetworkingSockets logs. Where i need to look to understand what's going on?

djdron avatar Dec 15 '21 11:12 djdron

Sorry for the delayed reply. Just getting all caught back up after holidays.

It might be easiest to just share the logs you have.

zpostfacto avatar Jan 10 '22 18:01 zpostfacto

Sorry for the delayed reply. Just getting all caught back up after holidays.

Merry Christmas and happy new year!)

It might be easiest to just share the logs you have.

Ok, here they are) gns_p2p_msgs_connect.zip

djdron avatar Jan 17 '22 09:01 djdron

Hello, @fletcherdvalve! Any news on this?

djdron avatar Feb 04 '22 14:02 djdron

Looking at the logs I think the rendezvous messages might not always be getting through, and this is causing NAT traversal to fail?

You might try adding a line like this:

SteamNetworkingUtils()->SetGlobalConfigValueInt32( k_ESteamNetworkingConfig_LogLevel_P2PRendezvous, k_ESteamNetworkingSocketsDebugOutputType_Debug );

And making sure that when one side sends a message, the other side always receives the message.

zpostfacto avatar Feb 11 '22 01:02 zpostfacto

@fletcherdvalve Hello and thanks for support!

I've just checked rendezvous messages - all fine with them. There are new logs with P2PRendezvous Debug log level. And I've also added rendezvous messages size & CRC info.

Seems connection is timed out? debug: "Timed out attempting to negotiate rendezvous" Is there are 10 seconds timeout?

test_connect2.zip

djdron avatar Feb 14 '22 11:02 djdron