andiodine icon indicating copy to clipboard operation
andiodine copied to clipboard

Connection keeps randomly dropping

Open lee-soft opened this issue 8 years ago • 10 comments

Really great app. I limit it exclusively to messaging apps like WhatsApp and Messenger and it works great as long as I keep using the phone.

  • option to automatically reconnect when 3g becomes available
  • keep the connection alive and automatically reconnect in the event of disconnecting
  • offer the option to only let text based messaging apps through the connection or automatically configure OS to block background apps

lee-soft avatar Jul 24 '16 15:07 lee-soft

what android version / flavour are you using?

faxm0dem avatar Jul 24 '16 15:07 faxm0dem

Galaxy S6. Android version: 6.0.1

lee-soft avatar Jul 24 '16 15:07 lee-soft

depending on flavour you can change android settings to never kill app when screen is off (search for protected apps)

faxm0dem avatar Jul 25 '16 08:07 faxm0dem

I've disabled power saving for andlodine using the samsung "smart manager" but It didn't seem to help. The connection log disappears when it's disconnected but the app itself remains opened. There's no log or error report that I can see. I see now it was saying "no downstream data has been received for 60 seconds, shutting down".

lee-soft avatar Jul 25 '16 09:07 lee-soft

there seems to be a "always on" option on android 6, but iodine doesn't appear in the list. I guess it's pptp only

faxm0dem avatar Jul 31 '16 21:07 faxm0dem

the problem seems to still be happening, i checked the log and found "no downstream data has been received for 60 seconds, shutting down". opening a terminal and repeatedly pinging a domain in addition to setting the connection type to "3G only" instead of "2G/3G/4G" appears to help a little. (i have confirmed it makes no difference now)

lee-soft avatar Aug 07 '16 09:08 lee-soft

i've recoded the app to reconnect the VPN automatically (subject to 3G availability) when iodine times out, but i dont think this is the optimal solution. My phone is continuously reconnecting the VPN every minute. strangely, sometimes the VPN would stay up for hours (even when the phone is idle and without manually pinging). i will log the 3G connection state.

lee-soft avatar Aug 14 '16 11:08 lee-soft

Hi yvesf, what info do you require?

lee-soft avatar Mar 26 '17 16:03 lee-soft

I have confirmed a few more things. Regardless of if I am actively using the phone or not the timeout still occurs and the VPN is automatically disconnected. Strangely some sessions will stay alive hours (active or not). Moments before the timeout occurs and the subsequent disconnection no communication seems to be getting through or being received (despite an active 3G connection). Maybe I just need to loosen the timeout?

lee-soft avatar May 27 '17 07:05 lee-soft

Works on an old S3 (4.1.2) but unfortunately drops connection within a couple of minutes after device is "asleep". Partial solution is to use WakeLock application in SCREEN_DIM_WAKE_LOCK mode (the screen has to be ON, use the lowest brightness setting ;( ! ) and a constant ICMP ping to iodine server for example with Connectbot and shortest packets. Of course this configuration rapidly drains battery, the phone even gets slightly warmer...

jartester avatar Jun 04 '17 21:06 jartester