Tried using the TURN server with the mediasoup-client, set the iceServers property while calling the device.createSendTransport(transportOptions); in the transport options. My client is in a corporate network where it is behind a firewall and direct media transfer is not possible to the mediasoup over UDP(since UDP ports are blocked). Mediasoup server is hosted at Google cloud having private ip as 10.11.73.75 and announceIP as 126.96.36.199.
For a client who is not behind a firewall everything works fine but for a client behind firewall in a corporate network is not able to send the media streams to the mediasoup server. There is one icecandidate generated as shown in the snapshot:
If we provide TURN servers in the iceServers property how will the iceCandidate be generated in the sendTransport or receiveTransport ? Will it prioritize the use of the ice candidates received from the socket.request(createProducerTransport) function or not?
Is it possible to produce new iceCandidates dynamically? The Mediasoup Servers are also behind a firewall but we have provisioned open UDP/TCP ports between 10000-14000, according to the mediasoup config of rtcMin and rtcMax port range.