andiodine
andiodine copied to clipboard
Connection keeps randomly dropping
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
what android version / flavour are you using?
Galaxy S6. Android version: 6.0.1
depending on flavour you can change android settings to never kill app when screen is off (search for protected apps)
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".
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
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)
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.
Hi yvesf, what info do you require?
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?
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...