[GH-ISSUE #1857] On Android, the connection is lost when switching between Wi-Fi and mobile data #797

Open
opened 2026-10-13 20:28:47 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @Seychik23 on GitHub (Sep 13, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1857

Describe the bug
On android, when switching between Wi-Fi and mobile data, and vice versa, the connection is lost. I have to disable and re-enable amnezia vpn.

To Reproduce
Steps to reproduce the behavior:

  1. Connect amnezia vpn to the desired server
  2. Switch network connection method between WiFi and mobile data (or mobile data -> Wifi)
  3. The VPN connection to the internet is lost.

Expected behavior
Resuming internet connection when switching methods

Log files
Attached

AmneziaVPN.log

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):
Samsung A52s 5G ( SM-A528B)
Android 15 (crDroid 11.7 ROM)

Server (please complete the following information):

  • OS: Ubuntu server 24.04
Originally created by @Seychik23 on GitHub (Sep 13, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1857 **Describe the bug** On android, when switching between Wi-Fi and mobile data, and vice versa, the connection is lost. I have to disable and re-enable amnezia vpn. **To Reproduce** Steps to reproduce the behavior: 1. Connect amnezia vpn to the desired server 2. Switch network connection method between WiFi and mobile data (or mobile data -> Wifi) 3. The VPN connection to the internet is lost. **Expected behavior** Resuming internet connection when switching methods **Log files** Attached [AmneziaVPN.log](https://github.com/user-attachments/files/22310201/AmneziaVPN.log) **Screenshots** If applicable, add screenshots to help explain your problem. **Smartphone (please complete the following information):** Samsung A52s 5G ( SM-A528B) Android 15 (crDroid 11.7 ROM) **Server (please complete the following information):** - OS: Ubuntu server 24.04
Author
Owner

@sheo9000 commented on GitHub (Sep 14, 2025):

+1, having the same issue, so I'm manually disabling and enabling vpn when I go out

<!-- gh-comment-id:3289428442 --> @sheo9000 commented on GitHub (Sep 14, 2025): +1, having the same issue, so I'm manually disabling and enabling vpn when I go out
Author
Owner

@sheo9000 commented on GitHub (Oct 7, 2025):

@Seychik23 If you have Premium, go to settings and enable VLESS
Cute cat
It solved the problem for me, this protocol provides a much more stable connection

<!-- gh-comment-id:3375932187 --> @sheo9000 commented on GitHub (Oct 7, 2025): @Seychik23 If you have Premium, go to settings and enable VLESS <img src="https://dl.flxcs.net/fv/bh/f4/jq/s2/7f/ds/94/75/l7/bm/ij/ej/t/image.png" alt="Cute cat" height="150"> It solved the problem for me, this protocol provides a much more stable connection
Author
Owner

@Evgeenii commented on GitHub (Feb 1, 2026):

I added persistentKeepAlive=15 inside the container in awg0. conf. The connection no longer drops. If you have the same issue, this works as a temporary solution. Hope it works for you.

<!-- gh-comment-id:3830416275 --> @Evgeenii commented on GitHub (Feb 1, 2026): I added persistentKeepAlive=15 inside the container in awg0. conf. The connection no longer drops. If you have the same issue, this works as a temporary solution. Hope it works for you.
Author
Owner

@kda2495 commented on GitHub (Feb 16, 2026):

PersistentKeepalive = 15 (or 10, 5) doesn't help. We need reconnect feature if connection is lost or changed.

<!-- gh-comment-id:3908385253 --> @kda2495 commented on GitHub (Feb 16, 2026): PersistentKeepalive = 15 (or 10, 5) doesn't help. We need reconnect feature if connection is lost or changed.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#797
No description provided.