Saturday, March 14, 2015

Fix Lollipop wifi issues (and coincidentally the Facebook app) by disabling ipv6


I upgraded to Android 5 when it was first released, experienced issues when connected to my home wifi, and went back to Kit Kat hoping it would be fixed later. I upgraded again to 5.1 thinking it would be fixed and was presented with the same issues. This time, instead of downgrading, I was determined to find a fix.


Problem: When connected to certain wifi networks (my home in particular), I would have 5-10s lag between loading web pages. It worked fine at work and school.


Cause: Android attempting to request an ipv6 address from my router, and my router not liking it.


Fix: You can do one of two things:




  1. Disable ipv6 on your router




  2. Disable ipv6 on Android.




I went with #2 because my router gave me no option to disable ipv6.


Procedure:



  • Root your phone if you are not already rooted.

  • Download the app SManager

  • Open SManager and navigate to a folder on your phone where you would like to have the script stored (e.g., SD card)

  • Click the options button and select New Script

  • Name it something relevant, e.g. disable_ipv6

  • In the editor that it opens, go below the "#!/system/bin/sh" line and enter the following:


echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6



  • Click the options button and select Save

  • Select the script you just created in SManager and it will open a dialog, at the top select Su and Net, this will run the script as root and do so any time there is a change in the network interface

  • Click Save


Now, whenever you connect to a wireless network, this script should run and disable ipv6. You can test this by disabling wifi, enabling it, and verifying that there is a 1 in the file /proc/sys/net/ipv6/conf/wlan0/disable_ipv6.


Your internet experience should now be as expected.


Interestingly, when using Kit Kat I could browse the web just fine but the Facebook app loaded everything very slowly. Now it works perfectly when I have ipv6 disabled. I think this is something to do with Facebook switching their severs to have ipv6 support.


I hope this helps someone else.





Android Leatest Updates

Submitted March 14, 2015 at 11:14PM by ifndef_name_define http://ift.tt/1ADKQiN

No comments:

Post a Comment