Page 1 of 2
VPN On Demand not working anymore
Posted: Tue Nov 24, 2020 9:23 pm
by TomekWaw
Hi,
My VPN On Demand feature that has been working fine for few months, has stopped working lately.
Is happened probably after some Android update but I'm not sure
I use Samsung S10 phone.
On demand monitor is running it just does't connect my OpenVPN connection anymore.
I may connect to it manually just fine.
On demand monitor also disconnects this connection if I connect to defined WiFi networks.
So it looks like VPN Client Pro lost some kind of permission to enable VPN connection
or it does not see connection to my local (defined) network.
I've tested it on two different apps requiring local connection to my home.
Re: VPN On Demand not working anymore
Posted: Wed Nov 25, 2020 4:59 pm
by admin
Hi,
please, can you post the on demand's settings screenshot?
- tap on "Connect on demand" button
Re: VPN On Demand not working anymore
Posted: Mon Nov 30, 2020 10:18 am
by TomekWaw
Sure, i attache the screenshot:
- Screenshot_20201130-110926_VPN-Client-Pro.png (186.93 KiB) Viewed 3384 times
Re: VPN On Demand not working anymore
Posted: Mon Nov 30, 2020 12:31 pm
by admin
With this configuration the VPN should be connected when a packet is sent to 192.168.103.0/24 and the device is not connected to the "... Internal"/"... Home" WiFi SSID.
If the device is connected to the "... Internal"/"... Home" WiFi SSID, the VPN is disconnected.
So if the problem occurs when the device is connected to the "... Internal"/"... Home" WiFi SSID, it is not a problem but it is normal behavior.
Can you please check?
Re: VPN On Demand not working anymore
Posted: Mon Nov 30, 2020 3:33 pm
by TomekWaw
Sure, I'm in IT for more then 20 years now, so this is pretty obvious to me.
I'm testing it on LTE with Wifi disabled.
And using two different apps that are configured to use 192.168.103.0/24 network IPS, it does not connect VPN anymore.
It was working fine for serveral months, but it stopped.
Re: VPN On Demand not working anymore
Posted: Mon Nov 30, 2020 3:36 pm
by TomekWaw
See this screenshot. On demand monitor is running. I'm on LTE.
DS Cam tries to connect to 192.168.103.2 and it can't.
No VPN connection is established, as before it was.
- Screenshot_20201130-163333_DS-cam.png (51.27 KiB) Viewed 3379 times
Re: VPN On Demand not working anymore
Posted: Mon Nov 30, 2020 5:16 pm
by admin
Sorry I didn't know about your experience so I started with the simplest questions.
Anyway, I did some testing and found a bug in the kotlin compiler that under certain circumstances adds a wrong cast for no reason and throw a java.lang.ClassCastException.
Unfortunately, that's what happened in the monitor on demand code.
So the problem was introduced with an update of the kotlin compiler. (As soon as I have a moment, I will send a bug report to the kotlin compiler developers)
I have already changed the code to fix the problem and the new version will be available soon.
My apologies for the problem.
Re: VPN On Demand not working anymore
Posted: Mon Nov 30, 2020 10:28 pm
by TomekWaw
Thank you very much. I look forward for the app update.
The app is great and I recommend it to all my IT-related friends.
Now I know your support is great also!
Re: VPN On Demand not working anymore
Posted: Thu Dec 03, 2020 1:06 pm
by user34506978
Dear admin,
I am having basically the same problem as the op here. I am using VPN pro premium on a Samsung Galaxy S20+ with Android 11 (out today) but also on a Samsung Galaxy Tab S6 with Android 10. I can not get it to work on either device.
I want it to connect on demand to a wireguard VPN for 192.168.128.0/24. Being on Cellular and opening a site on my internal network within this subnet, nothing happens. Being in IT many years as well and holding many certifications, I can still always make a wrong setting. Can you please advise?
- 'Location' permission to 'always'
- added the appropriate route to the VPN and checked it as connect on demand VPN
- enabled the monitor and t is shown in the notification bar
Anything else that I might have missed?
Thanks a lot
Re: VPN On Demand not working anymore
Posted: Thu Dec 03, 2020 1:34 pm
by admin
The problem has been fixed, but I'm waiting for the update to be published on Google Play.