In a webRTC context with two RTCPeerConnection who try to establish a communication both with a browser. I have a TURN server which has a public IP and a client with a private IP.
How can I avoid (in Javascript) the client's browser to start connectivity check with an IP on which he will never have possibility to communicate with?
The purpose is to save useless browser transport request and avoid triggering RTCPeerConnectionIceErrorEvent (like below) on client side.
{
"address": "192.168.253.x",
"errorCode": 701,
"errorText": "TURN allocate request timed out.",
"path": "[undefined]",
"port": 62584,
"type": "icecandidateerror",
"url": "turn:my.public.ip:3478?transport=udp"
}
TURN allocate request timed out.errors on private IP ? – Cédric Oct 12 '23 at 13:26