Giter Site home page Giter Site logo

Connection keeps randomly dropping about andiodine HOT 10 OPEN

yvesf avatar yvesf commented on September 23, 2024
Connection keeps randomly dropping

from andiodine.

Comments (10)

faxm0dem avatar faxm0dem commented on September 23, 2024 1

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

from andiodine.

faxm0dem avatar faxm0dem commented on September 23, 2024

what android version / flavour are you using?

from andiodine.

lee-soft avatar lee-soft commented on September 23, 2024

Galaxy S6.
Android version: 6.0.1

from andiodine.

lee-soft avatar lee-soft commented on September 23, 2024

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

from andiodine.

faxm0dem avatar faxm0dem commented on September 23, 2024

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

from andiodine.

lee-soft avatar lee-soft commented on September 23, 2024

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)

from andiodine.

lee-soft avatar lee-soft commented on September 23, 2024

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.

from andiodine.

lee-soft avatar lee-soft commented on September 23, 2024

Hi yvesf, what info do you require?

from andiodine.

lee-soft avatar lee-soft commented on September 23, 2024

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?

from andiodine.

jartester avatar jartester commented on September 23, 2024

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

from andiodine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.