Fixed Wifi-based connection on android 4.2, thanks google for changing your api behaviour. Closes #156