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.
Connect on demand not working properly
Re: Connect on demand not working properly
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)
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)
-
- Posts: 3
- Joined: Tue Feb 11, 2025 11:38 am
Re: Connect on demand not working properly
OK, I see the problem. This is my "on demand" configuration:
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:
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....
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:
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....

Re: Connect on demand not working properly
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:
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
-
- Posts: 3
- Joined: Tue Feb 11, 2025 11:38 am
Re: Connect on demand not working properly
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.
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.
Re: Connect on demand not working properly
You're welcome.
Thanks for the feedback.
Thanks for the feedback.