Page 1 of 2

Autoconnect has problem with 3 hotspots with same SSID

Posted: Thu Nov 09, 2023 2:46 pm
by ThePhantom79
Hello,

I am using VPN Pro with WireGuard and Autoconnect.
Wireguard will connect everytime, except it is connected to my home network. So I ticked these options:

- connect, if mobile network is connected
- connect, if WLAN is connected - except <my home network SSID>
- disconnect the connection, if WIFI is interupted or SSID is not allowed

At home I have 3 accesspoints - one in each floor (but same SSID). Unfortunately the connection will we established, if I change the floor and my mobile switchs from one AP to the other (Autoconnect establish immedeatly to my wireuard server - but SSID should prevent this!). This results, that the complete network connection is unavailable, as VPN to my homenetwork is not possible. The complete mobile phone is offline, what is VERY bad.
And I don't get a notice. Sometimes, the wireguard will disconnect after a while and everything is fine, sometimes not and the mobile stays offline (because wireguard connection in my homewlan do not work!)

Is this a bug? How can I prevent the auto connection, if I "roam" from one AP to the other (with same SSIDs)?

Re: Autoconnect has problem with 3 hotspots with same SSID

Posted: Thu Nov 09, 2023 4:07 pm
by admin
Hello,

the VPN log also shows the connectivity change events and the reason for the connection.
Please, check the VPN log for the reason for the auto connection.
  • start the app
  • tap on VPN profile
  • tap on LOG tab

Re: Autoconnect has problem with 3 hotspots with same SSID

Posted: Fri Nov 10, 2023 12:32 pm
by ThePhantom79
I cant find any "reeson" in this log.
The only reason is:
"Connect request by auto connect (Mobile)"

My assunmption is: Between roaming between AP1 and AP2 the mobile phone connects for some mili seconds to the mobile network, before connects to Access Point 2. In this mili second, VPN software tries to connect to my Wireguard Server. In the meantime, the phone is already connected to Accesspoint 2.
If this is the case, then a small "wait command" would help (before VPNClient Pro vonnect to the VPN network ...)

Any more hints?

Re: Autoconnect has problem with 3 hotspots with same SSID

Posted: Fri Nov 10, 2023 3:21 pm
by admin
Please, can you post the whole log?

Re: Autoconnect has problem with 3 hotspots with same SSID

Posted: Mon Nov 13, 2023 7:54 am
by ThePhantom79
Hi,
here a typical Log - this time it worked (after some seconds, it disconnected VPN again). Logs looks almost same, if it do not disconnect (I can see only the last log - if it happens again, and I am able to catch the log I will post it here).
Personal data removed ...

Code: Select all

2023-11-13 07:38:12 VpnClientPro-google-api27-release-1.01.56 (30010156)
2023-11-13 07:38:12 Connecting request by auto connect (Mobile)
2023-11-13 07:38:13 OpenSSL 3.0.12 24 Oct 2023
2023-11-13 07:38:13 Add peer <my-DNS>[IPv6]:51820
2023-11-13 07:38:13   set keep alive to 25
2023-11-13 07:38:13   -> 0.0.0.0/0
2023-11-13 07:38:13 Add peer <my-DNS>[IP]:51820
2023-11-13 07:38:13   set keep alive to 25
2023-11-13 07:38:13   -> 0.0.0.0/0
2023-11-13 07:38:13 Send handshake (1) to IPv6
2023-11-13 07:38:13 Handshake with IPv6 completed
2023-11-13 07:38:13 Connected
2023-11-13 07:38:14 write link error: Network is unreachable
2023-11-13 07:38:14 write link error: Network is unreachable
2023-11-13 07:38:14 write link error: Network is unreachable
2023-11-13 07:38:14 write link error: Network is unreachable
2023-11-13 07:38:14 write link error: Network is unreachable
2023-11-13 07:38:14 write link error: Network is unreachable
2023-11-13 07:38:14 write link error: Network is unreachable
2023-11-13 07:38:14 write link error: Network is unreachable
2023-11-13 07:38:14 write link error: Network is unreachable
2023-11-13 07:38:14 write link error: Network is unreachable
2023-11-13 07:38:14 write link error: Network is unreachable
2023-11-13 07:38:15 write link error: Network is unreachable
2023-11-13 07:38:15 write link error: Network is unreachable
2023-11-13 07:38:15 write link error: Network is unreachable
2023-11-13 07:38:15 write link error: Network is unreachable
2023-11-13 07:38:15 write link error: Network is unreachable
2023-11-13 07:38:16 write link error: Network is unreachable
2023-11-13 07:38:16 write link error: Network is unreachable
2023-11-13 07:38:16 write link error: Network is unreachable
2023-11-13 07:38:16 write link error: Network is unreachable
2023-11-13 07:38:16 write link error: Network is unreachable
2023-11-13 07:38:16 write link error: Network is unreachable
2023-11-13 07:38:16 write link error: Network is unreachable
2023-11-13 07:38:16 write link error: Network is unreachable
2023-11-13 07:38:17 write link error: Network is unreachable
2023-11-13 07:38:17 write link error: Network is unreachable
2023-11-13 07:38:17 write link error: Network is unreachable
2023-11-13 07:38:17 write link error: Network is unreachable
2023-11-13 07:38:17 write link error: Network is unreachable
2023-11-13 07:38:17 write link error: Network is unreachable
2023-11-13 07:38:18 write link error: Network is unreachable
2023-11-13 07:38:18 write link error: Network is unreachable
2023-11-13 07:38:18 write link error: Network is unreachable
2023-11-13 07:38:18 write link error: Network is unreachable
2023-11-13 07:38:18 write link error: Network is unreachable
2023-11-13 07:38:18 write link error: Network is unreachable
2023-11-13 07:38:19 Connectivity change detected: WiFi - <my-SSID>
2023-11-13 07:38:19 The VPN has the option disconnect when WiFi is down
2023-11-13 07:38:19   SSID != <my-SSID>
2023-11-13 07:38:19 Disconnecting...
2023-11-13 07:38:19 Disconnected

Re: Autoconnect has problem with 3 hotspots with same SSID

Posted: Mon Nov 13, 2023 9:59 am
by admin
Thank you.
Yes, the previous log is deleted when the VPN is started.
From the log it appears that your device takes some time before sending the connectivity change event. These events are sent by the operating system and the app simply reacts to the events received.
To better understand what is happening you can try temporarily disabling the auto connect settings, start the VPN manually and move to cause roming between two APs.
In this way the log will show all the events received for the change in connectivity...

Perhaps the problem could be caused by a Wi-Fi setting such as "Intelligent network connection" or "Intelligently select best Wi-Fi"

Re: Autoconnect has problem with 3 hotspots with same SSID

Posted: Mon Nov 13, 2023 10:33 am
by ThePhantom79
Now a log, when it stucks on trying to connect to VPN - and phone is offline - the messages will not end, until I manually start / stop VPN again.
It looks a little bit different.


Code: Select all

2023-11-13 11:12:45 VpnClientPro-google-api27-release-1.01.56 (30010156)
2023-11-13 11:12:45 Connecting request by auto connect (Mobile)
2023-11-13 11:12:46 Connectivity change detected: <my SSID>
2023-11-13 11:12:46 The VPN has the option disconnect when WiFi is down
2023-11-13 11:12:46   SSID != <my SSID>
2023-11-13 11:12:47 OpenSSL 3.0.12 24 Oct 2023
2023-11-13 11:12:47 Add peer <my DNS> [192.168.0.11]:51820
2023-11-13 11:12:47   set keep alive to 25
2023-11-13 11:12:47   -> 0.0.0.0/0
2023-11-13 11:12:47 Send handshake (1) to 192.168.0.11:51820
2023-11-13 11:12:53 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:12:53 Send handshake (2) to 192.168.0.11:51820
2023-11-13 11:12:59 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:12:59 Send handshake (3) to 192.168.0.11:51820
2023-11-13 11:13:05 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:13:05 Send handshake (4) to 192.168.0.11:51820
2023-11-13 11:13:11 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:13:11 Send handshake (5) to 192.168.0.11:51820
2023-11-13 11:13:17 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:13:17 Send handshake (6) to 192.168.0.11:51820
2023-11-13 11:13:23 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:13:23 Send handshake (7) to 192.168.0.11:51820
2023-11-13 11:13:29 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:13:29 Send handshake (8) to 192.168.0.11:51820
2023-11-13 11:13:35 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:13:35 Send handshake (9) to 192.168.0.11:51820
2023-11-13 11:13:41 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:13:41 Send handshake (10) to 192.168.0.11:51820
2023-11-13 11:13:47 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:13:47 Send handshake (11) to 192.168.0.11:51820
2023-11-13 11:13:53 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:13:53 Send handshake (12) to 192.168.0.11:51820
2023-11-13 11:13:59 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:13:59 Send handshake (13) to 192.168.0.11:51820
2023-11-13 11:14:46 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:14:46 Send handshake (14) to 192.168.0.11:51820
2023-11-13 11:14:52 Peer 192.168.0.11:51820 handshake timeout
2023-11-13 11:14:52 Send handshake (15) to 192.168.0.11:51820
2023-11-13 11:14:58 Peer 192.168.0.11:51820 handshake timeout

Re: Autoconnect has problem with 3 hotspots with same SSID

Posted: Tue Nov 14, 2023 10:10 am
by ThePhantom79
Hi,
as requested, I switched ON VPN manually (disabled Auto Connect), and moved from one AP to the other. You can see again, that for 1 sec the mobile phone switched to mobile before it connetcs to the second AP. That is IMHO to fast for VPN Client Pro.

I checked also my mobile, and there is an option "Wifi+" - to optimize Wifi / Mobile Internet switching. But it was and is switched off.

Code: Select all

2023-11-14 11:02:13 VpnClientPro-google-api27-release-1.01.56 (30010156)
2023-11-14 11:02:13 Connecting request by user
2023-11-14 11:02:13 OpenSSL 3.0.12 24 Oct 2023
2023-11-14 11:02:13 Add peer <myDNS>[myIP]:51820
2023-11-14 11:02:13   set keep alive to 25
2023-11-14 11:02:13   -> 0.0.0.0/0
2023-11-14 11:02:13 Send handshake (1) to 192.168.0.11:51820
2023-11-14 11:02:19 Peer 192.168.0.11:51820 handshake timeout
2023-11-14 11:02:19 Send handshake (2) to 192.168.0.11:51820
2023-11-14 11:02:25 Peer 192.168.0.11:51820 handshake timeout
2023-11-14 11:02:25 Send handshake (3) to 192.168.0.11:51820
2023-11-14 11:02:31 Peer 192.168.0.11:51820 handshake timeout
2023-11-14 11:02:31 Send handshake (4) to 192.168.0.11:51820
2023-11-14 11:02:37 Peer 192.168.0.11:51820 handshake timeout
2023-11-14 11:02:37 Send handshake (5) to 192.168.0.11:51820
2023-11-14 11:02:43 Peer 192.168.0.11:51820 handshake timeout
2023-11-14 11:02:43 Send handshake (6) to 192.168.0.11:51820
2023-11-14 11:02:49 Peer 192.168.0.11:51820 handshake timeout
2023-11-14 11:02:49 Send handshake (7) to 192.168.0.11:51820
2023-11-14 11:02:55 Connectivity change detected: Mobile
2023-11-14 11:02:55 The auto connect options are ignored because the auto connect is disabled
2023-11-14 11:02:55 Peer 192.168.0.11:51820 handshake timeout
2023-11-14 11:02:55 Send handshake (8) to 192.168.0.11:51820
2023-11-14 11:02:56 Connectivity change detected: <my SSID>
2023-11-14 11:02:56 The auto connect options are ignored because the auto connect is disabled
2023-11-14 11:03:01 Peer 192.168.0.11:51820 handshake timeout
2023-11-14 11:03:01 Send handshake (9) to 192.168.0.11:51820
2023-11-14 11:03:07 Peer 192.168.0.11:51820 handshake timeout
2023-11-14 11:03:07 Send handshake (10) to 192.168.0.11:51820
2023-11-14 11:03:13 Peer 192.168.0.11:51820 handshake timeout
2023-11-14 11:03:13 Send handshake (11) to 192.168.0.11:51820
2023-11-14 11:03:19 Peer 192.168.0.11:51820 handshake timeout
2023-11-14 11:03:19 Send handshake (12) to 192.168.0.11:51820
2023-11-14 11:03:25 Peer 192.168.0.11:51820 handshake timeout
2023-11-14 11:03:25 Send handshake (13) to 192.168.0.11:51820

Re: Autoconnect has problem with 3 hotspots with same SSID

Posted: Tue Nov 14, 2023 7:22 pm
by admin
Thank you very much for the info.
I think I found and solved the problem.
The new version has already been uploaded to Google Play and will be available after Google's approval

Re: Autoconnect has problem with 3 hotspots with same SSID

Posted: Thu Nov 16, 2023 7:37 am
by Geier97332
Hello,

can you explain exactly your solution found for this problem?

I have nearly the same setup at home and faced same issues.


Thanks!