iceServers use not consistent

Hello,

we are trying to make iceServers work consistently. The issue is that sometimes the iceServer is what we have configured and sometimes it points to openvidu masters own IP, which causes issues to users behind restrictive firewalls.

We have this configuration in our backend:

IceServerProperties iceServerProperties = new IceServerProperties.Builder()
    .url(TURN_URL)
    .staticAuthSecret(STATIC_AUTH_SECRET)
    .build();

ConnectionProperties connectionProperties = new ConnectionProperties.Builder().type(ConnectionType.WEBRTC)
.role(role).addCustomIceServer(iceServerProperties).build();

And when creating new session many times in a row, sometimes it works and sometimes it does not. This was also noticed from chrome://web-internals where iceServers show openvidu masters IP instead of configured TURN_URL.

Do you have any suggestions how to make it more consistent or is there something we’re doing wrong?

What version are you using and what OpenVidu edition?

There was an issue in the Java client with Ice configuration in version 2.28.0.

If you configure the connection via Http API Rest without the client use, it should work properly. But I recommend upgrading to version 2.28.0

Check the release notes bug fixes: Releases - OpenVidu Docs