Connect on demand not working properly

Support requests about VPN Client Pro
Post Reply
gramenauer
Posts: 3
Joined: Tue Feb 11, 2025 11:38 am

Connect on demand not working properly

Post by gramenauer »

Hello,

I have a WireGuard tunnel active and working, but I want it to disconnect automatically when I'm at home using my WiFi.

I checked the option "Disconnect when the WiFi is connected to these SSIDs" and added my SSID to the list.

However, nothing happens when I connect to my SSID—the tunnel remains active instead of disconnecting.

I have already granted "Location Allowed all the time." In fact, when I check the logs, I can see my SSID listed:

Connectivity change detected: WiFi - <myssid>

But the tunnel still doesn't disconnect as expected.

I have restarted the tunnel several times, even rebooted my device (Android 15).

I re-checked my SSID is in the list.

Version:
Last one: 1.01.98 (for Android)
google-api27-release-1.01.98 (30010198)

Any idea why this is happening?

Thank you very much.
admin
Site Admin
Posts: 755
Joined: Fri Feb 15, 2019 4:04 pm
Contact:

Re: Connect on demand not working properly

Post by admin »

Hello,
I have done some tests and it seems to work as expected.
Can you please post the screenshot of the "Connect on demand" settings, "Auto connect" settings and the VPN log (after the device has connected to the home WiFi)
gramenauer
Posts: 3
Joined: Tue Feb 11, 2025 11:38 am

Re: Connect on demand not working properly

Post by gramenauer »

OK, I see the problem. This is my "on demand" configuration:

Screenshot_2025-02-12-19-58-58-98_040fb96b384e483db87f9358a01b6e01.jpg
Screenshot_2025-02-12-19-58-58-98_040fb96b384e483db87f9358a01b6e01.jpg (36 KiB) Viewed 17974 times

As you can see, my SSID is "bruce7", which is correct.
But I don't have any VPN configured for on demand connection. Why? Because when I touch the "+" sign, I can select my VPN profile, but then I must select an app to enable "on demand" mode for that VPN:

Screenshot_2025-02-12-20-09-44-71_040fb96b384e483db87f9358a01b6e01.jpg
Screenshot_2025-02-12-20-09-44-71_040fb96b384e483db87f9358a01b6e01.jpg (30.38 KiB) Viewed 17974 times

Why should I select an app ? I only want to disconnect my VPN when I'm connected to my home WiFi. Why should associate that to an app? It's no sense.

I'm missing something.... :roll:
admin
Site Admin
Posts: 755
Joined: Fri Feb 15, 2019 4:04 pm
Contact:

Re: Connect on demand not working properly

Post by admin »

The "Connect on demand" feature is useful when you want to automatically use a VPN when the device sends packets to one or more routes or one or more apps send packets to the Internet.
To connect/disconnect a VPN based on connectivity you can use the "Auto connect" feature. In your case you can follow these steps:
  • start the app
  • tap on top left icon
  • tap on "Auto connect" button
  • tap on "+" button
  • find the VPN profile and tap on it
  • select "Connect when the WiFi is connected but not to these SSID" and set your home SSID
  • select "Disconnect when WiFi is down or SSID is not allowed"
  • save the changes
gramenauer
Posts: 3
Joined: Tue Feb 11, 2025 11:38 am

Re: Connect on demand not working properly

Post by gramenauer »

OK, now it works like a charm.

I also checked "Connect when mobile connectivity is up", because otherwise when I disable WiFi it does not reconnect.

It's a little bit confusing the option "Disconnect when the Wifi is connected to these SSID" on on-demand section. But I understand now how it works.

Many thanks for your support.
admin
Site Admin
Posts: 755
Joined: Fri Feb 15, 2019 4:04 pm
Contact:

Re: Connect on demand not working properly

Post by admin »

You're welcome.
Thanks for the feedback.
Post Reply