VPN sometimes loses local network

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

VPN sometimes loses local network

Post by digitalstone » 15 Oct 2018 10:49

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?
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: VPN sometimes loses local network

Post by Desmanto » 16 Oct 2018 11:28

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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: VPN sometimes loses local network

Post by digitalstone » 16 Oct 2018 17:00

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
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: VPN sometimes loses local network

Post by Desmanto » 17 Oct 2018 17:37

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:
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: VPN sometimes loses local network

Post by digitalstone » 18 Oct 2018 12:07

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
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: VPN sometimes loses local network

Post by digitalstone » 30 Oct 2018 11:43

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?
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: VPN sometimes loses local network

Post by Desmanto » 31 Oct 2018 01:45

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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: VPN sometimes loses local network

Post by digitalstone » 31 Oct 2018 08:33

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
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

Post Reply