jitsi / jitsi-android

Jitsi for Android is an Android port of the Jitsi project: The most feature-rich communicator with support for encrypted audio/video, chat and presence over SIP and XMPP
Apache License 2.0
415 stars 258 forks source link

disabling IPv6 for ICE #36

Closed 459below closed 9 years ago

459below commented 9 years ago

Although it'll be a few years until we will have full IPv6 connectivity, Recent Android Versions are very eager to use IPv6 anywhere they can. This seems to be a major problem in getting a proper peer-to-peer connection going to an IPv4 contact. Rooted devices can use echo "1" > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6 to temporary disable it. But I am very certain that most of the people do not have IPv6 connectivity and it should become a bigger problem the more people will get it, before it will become less of an issue again.

mondain commented 9 years ago

In ice4j, it's easy enough to simply ignore the candidates which contain the xxxx:xxxx:* pattern; that's what I did in my app.

mondain commented 9 years ago

Another thing to try is to pass the googIPv6:false option in your peer connection.

459below commented 9 years ago

Thanks for the pointers. I'm not yet familiar with ICE or WebRTC, but I will try to find the appropriate lines to set this.

bgrozev commented 9 years ago

@459below setting this property will disable ipv6 in ice4j (the ICE library used in jitsi-android): org.ice4j.ipv6.DISABLED=true

mondain commented 9 years ago

@bgrozev Is there a wiki page or doc somewhere that lists the system props available for the jitsi projects? Especially in this case ice4j?

bgrozev commented 9 years ago

Unfortunately not.