Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Connection keeps randomly dropping #25

Open
lee-soft opened this issue Jul 24, 2016 · 10 comments
Open

Connection keeps randomly dropping #25

lee-soft opened this issue Jul 24, 2016 · 10 comments

Comments

@lee-soft
Copy link

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
@faxm0dem
Copy link

what android version / flavour are you using?

@lee-soft
Copy link
Author

Galaxy S6.
Android version: 6.0.1

@faxm0dem
Copy link

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

@lee-soft
Copy link
Author

lee-soft commented Jul 25, 2016

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".

@faxm0dem
Copy link

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

@lee-soft
Copy link
Author

lee-soft commented Aug 7, 2016

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
Copy link
Author

lee-soft commented Aug 14, 2016

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
Copy link
Author

Hi yvesf, what info do you require?

@lee-soft
Copy link
Author

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?

@jartester
Copy link

jartester commented Jun 4, 2017

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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants