Page 1 of 1

VPN sometimes loses local network

Posted: 15 Oct 2018 10:49
by digitalstone
The situation:
From outside to inside, 4G off & wifi on.
From inside to outside, 4G on & wifi off.

When this switching happens, it's always a gamble if the vpn (NordVPN) keeps it's local network connection.

I need this connection when leaving the house to send diverse signals through the local network.
Sometimes that works and i can leave quickly, but other times i need to grab the phone, go to the vpn app to disconnect for the signal to go through, and afterwards reconnect the vpn again.

does anyone recognize this or have a solution?

Re: VPN sometimes loses local network

Posted: 16 Oct 2018 11:28
by Desmanto
Is this the same problem you have mentioned before? viewtopic.php?f=5&t=7466

Probabaly checking the connection and make a flow to auto restart the nord VPN app is the best solution then.

Re: VPN sometimes loses local network

Posted: 16 Oct 2018 17:00
by digitalstone
Yes i see. This is quite imbaressing -_-
That topic entailed a couple of questions though, and i have gone all over the place with this flow.
That's my excuse :p

So i'll go with the old idea of killing the nordvpn activity in case of failure.
i had private internet access back then.

P.S.: You remembered this 1 particular instance of my topic from 4 months ago?
Now i know you're actually an android... in form of a very surprised looking cat :D

Re: VPN sometimes loses local network

Posted: 17 Oct 2018 17:37
by Desmanto
Hahaha, I vaguely remembered your case, and search for it. Then put the link here. Sometimes I digress too far and forgot the previous solution too. I have distracted again by other flow and not yet making progress in the battery estimation flow :(
I can't lift the curse that have transformed me into a cat. :D Guess I have to stay in this form until the end of the universe. :lol:

Re: VPN sometimes loses local network

Posted: 18 Oct 2018 12:07
by digitalstone
Oh it's understandable then ;)
I'm also fiddling around with the battery estimation time and i think i'm onto something here.
Android says: 1 Day + 4 hours
My flow says: 1 Day + 1.5 hours

Cats don't like the cold, so you really want to avoid the heatdeath of the universe :o

Re: VPN sometimes loses local network

Posted: 30 Oct 2018 11:43
by digitalstone
So this method has been working out beautifully for some time now, but maybe i can make this topic more useful by asking one more thing:

I use action "Launch App"
Packagename: com.nordvpn.android
Classname: de.blinkt.openvpn.LaunchVPN

Along with it, it starts a loading-circle right in the middle of the screen. It's inside an android top-layer because i either have to use back/home/appswitch to get rid of it. Also it doesn't seem to be doing anything. Just sits there until the end of day if necessary.

Would it be best to use CUI for this in combo with a widget that ignores touches?

Re: VPN sometimes loses local network

Posted: 31 Oct 2018 01:45
by Desmanto
After pressing back/home/recent, does the loading circle disappear completely? or just hidden? If yes, then yes CUI with home() or back() works fine. While the widget means to protect the screen while it is running right? If so, yes too. Just simply show the widget for 1-2 seconds and hide it after the loading animation has been closed by the CUI.

Re: VPN sometimes loses local network

Posted: 31 Oct 2018 08:33
by digitalstone
Yes the loading circle looks actually to be inside a transparant app-screen (don't know what it is called). When pressing back/home/recent it leaves the screen like a normal app (to the bottom in my case). I'm pretty positive that your method will work. Thanks