Android sdk 'libjingle: (network.cc:805): Connect failed with 101' error persist when trying to reconnect

edl-johncogay

New Member
Start of android log when libjingle: (network.cc:805): Connect failed with 101 error occur:

Code:
2020-12-04 16:53:40.933 27060-27852/edlution.com.sg.icoview I/libjingle: (network.cc:805): Connect failed with 101

2020-12-04 16:53:42.937 27060-27852/edlution.com.sg.icoview I/libjingle: (network.cc:805): Connect failed with 101

2020-12-04 16:53:44.209 27060-27852/edlution.com.sg.icoview I/libjingle: (port.cc:1295): Jingle:Conn[0x848a7800:audio:e7bn96/F:1:0:prflx:udp:130.105.94.x:58128->uCY07pNd:1:2130706431:local:udp:18.136.22.x:31922|C-WI|7962116751041232894|73]: Timing-out STUN ping 6a485a6576477a653039384d after 5000 ms

2020-12-04 16:53:44.255 27060-27852/edlution.com.sg.icoview I/libjingle: (port.cc:1088): Jingle:Conn[0x848a7800:audio:e7bn96/F:1:0:prflx:udp:130.105.94.x:58128->uCY07pNd:1:2130706431:local:udp:18.136.22.x:31922|C-WI|7962116751041232894|73]: Unwritable after 5 ping failures and 5045 ms without a response, ms since last received ping=13055 ms since last received data=5418 rtt=146

2020-12-04 16:53:44.256 27060-27852/edlution.com.sg.icoview I/libjingle: (port.cc:1304): Jingle:Conn[0x848a7800:audio:e7bn96/F:1:0:prflx:udp:130.105.94.x:58128->uCY07pNd:1:2130706431:local:udp:18.136.22.x:31922|C-wI|7962116751041232894|73]: Sent STUN ping, id=33353755635474586569694e, use_candidate=1

2020-12-04 16:53:44.256 27060-27852/edlution.com.sg.icoview I/libjingle: (transportcontroller.cc:527): audio TransportChannel 1 writability changed to 0.
 
Last edited by a moderator:

Max

Administrator
Staff member
Make sure UDP ports open on your server or firewall [31000 - 32000] by default. As you can see from logs it is STUN timeout error. Android device can't send or receive STUN UDP packets. You can also check connection with our demo server wss://demo.flashphoner.com:8443
 

edl-johncogay

New Member
Hello, firewall is already off on server side and UDP ports are also open.

This issue occur when android is doing connect/reconnect multiple times. probably on the 6th-10th try.
Also to note, we are currently android is using ws to connect to server , not wss, will this thing matter on this ?
 

Max

Administrator
Staff member
Please check if the issue is reproduced using Streaming-min example. If not, please modify example code minimally to reproduce the issue, and send source code archive using this private form.
If the issue is reproduced with example out of the box, please collect a report as described here and send using this private form.
 
Top