Web RTC connection dropping

Hi,

I’m trying establish a WebRTC connection, with a data channel, between the unity editor and my Oculus quest 2. I have the offer and answer exchanges figured out.

My issue:

If both devices are on the same network the RTCIceConnectionState makes it all the way to Connected, the data channel opens, and a couple second later the connection drops.

If the devices are on different networks the connection gets stuck in the Checking state.

Any debugging tips or tricks?

1 Like

I have a similar issue however I never have problems with local networks but as soon as something is on a different network I get stuck in Checking. TURN servers are available and added but I can’t tell what is happening under the hood? Adopted my framework using the DataChannel example.

Have a same problem with MediaStream, if both clients are on the same device, my pc for example, connects fine, if I launch other client on my laptop, then it gets stuck in checking state. I didn’t quite understood your solution