Hello everyone. I am building a native iOS app with the WebRTC framework version M118
as compiled by stasel and I have been running into an issue that for the life of me I cannot resolve. No matter what STUN/TURN servers I provide, the
peerConnection(_:didFailToGatherIceCandidate:) callback keeps emitting 701 errors. When I emit the RTC logs, I receive messages like:
(stun_port.cc:608): UDP send of 20 bytes to host ss-turn1.xirsys.com:80 (178.128.23.x:80) failed with error 0 : [0x00000041] No route to host
(stun_port.cc:608): UDP send of 20 bytes to host ss-turn1.xirsys.com:3478 (178.128.23.x:3478) failed with error 0 : [0x00000041] No route to host
(stun_port.cc:608): UDP send of 20 bytes to host ss-turn1.xirsys.com:3478 (178.128.23.x:3478) failed with error 0 : [0x00000023] Resource temporarily unavailable
(stun_port.cc:608): UDP send of 20 bytes to host ss-turn1.xirsys.com:80 (178.128.23.x:80) failed with error 0 : [0x00000023] Resource temporarily unavailable
(stun_port.cc:461): Port[6044000:0:1:0:local:Net[utun3:fdcd:53ed:b12:x:x:x:x:x/64:VPN/Unknown:id=18]]: StunPort: stun host lookup received error 8
(stun_port.cc:461): Port[6044000:0:1:0:local:Net[utun3:fdcd:53ed:b12:x:x:x:x:x/64:VPN/Unknown:id=18]]: StunPort: stun host lookup received error 8
(stun_port.cc:461): Port[6058600:0:1:0:local:Net[ipsec5:fd74:6572:6d6e:x:x:x:x:x/128:VPN/Unknown:id=8]]: StunPort: stun host lookup received error 8
(stun_port.cc:461): Port[604f200:0:1:0:local:Net[en0:2405:9800:b662:x:x:x:x:x/64:Wifi:id=2]]: StunPort: stun host lookup received error 8
(stun_port.cc:461): Port[6058600:0:1:0:local:Net[ipsec5:fd74:6572:6d6e:x:x:x:x:x/128:VPN/Unknown:id=8]]: StunPort: stun host lookup received error 8
(stun_port.cc:461): Port[605ec00:0:1:0:local:Net[ipsec5:fd74:6572:6d6e:x:x:x:x:x/128:VPN/Unknown:id=9]]: StunPort: stun host lookup received error 8
(stun_port.cc:461): Port[6099800:0:1:0:local:Net[pdp_ip2:2607:fc20:a1cb:x:x:x:x:x/64:Cellular:id=16]]: StunPort: stun host lookup received error 8
(stun_port.cc:461): Port[604f200:0:1:0:local:Net[en0:2405:9800:b662:x:x:x:x:x/64:Wifi:id=2]]: StunPort: stun host lookup received error 8
(stun_port.cc:461): Port[6099800:0:1:0:local:Net[pdp_ip2:2607:fc20:a1cb:x:x:x:x:x/64:Cellular:id=16]]: StunPort: stun host lookup received error 8
(stun_port.cc:461): Port[605ec00:0:1:0:local:Net[ipsec5:fd74:6572:6d6e:x:x:x:x:x/128:VPN/Unknown:id=9]]: StunPort: stun host lookup received error 8
DNS should be fine, I can connect to the same stun/turn servers when I test through Trickle ICE in the phone's safari browser, and like I've said, I've tested with multiple STUN/TURN servers, including Google's, Xirsys's, and a private coturn server. Have any of you seen this before or know how to resolve it?
Thanks so much!