Many 701s on native iOS

127 views
Skip to first unread message

Lynn Gabbay

unread,
Nov 20, 2023, 4:40:34 AM11/20/23
to discuss-webrtc
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!

Philipp Hancke

unread,
Nov 20, 2023, 4:43:30 AM11/20/23
to discuss...@googlegroups.com
Why do you think it needs resolving? This just tells you that a candidate could not be gathered for a particular interface which may be fine.

--
This list falls under the WebRTC Code of Conduct - https://webrtc.org/support/code-of-conduct.
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/cccb8413-63ae-41f2-bd3d-12c6c76c6317n%40googlegroups.com.

Lynn Gabbay

unread,
Nov 22, 2023, 8:28:35 AM11/22/23
to discuss-webrtc
Thank you for your reply.  Perhaps that's it.  My concern was that none of the STUN/TURN servers were working, not only a subset.  Is there a way to determine if any of them succeeded?  I will corroborate that often the peer connection will report connected, but connecting can take several seconds and sometimes it will not connect at all.
Reply all
Reply to author
Forward
0 new messages