[GH-ISSUE #39] Connectivity loss when transitioning from WiFi to cellular #27

Closed
opened 2026-10-13 21:05:16 +00:00 by bsakaguchi · 10 comments
Owner

Originally created by @yuriykulikov on GitHub (Aug 8, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-android/issues/39

Given an Android smartphone is connected to home WiFi and Amnezia is connected, when WiFi connectivity is lost and Android falls back to cellular connectivity, then the device loses internet access. Manually reconnecting Amnezia resolves the issue.

Detailed description

When internet connectivity is lost Amnezia UI still shows "connected". 8.8.8.8 cannot be pinged. The issue can be resolved by disconnecting and reconnecting Amnezia in the UI.

It seems that this also occasionally happens when moving from cell to cell.

Observed on

  • Pixel 8, Android 16 (latest)
  • Amnezia 4.8.8.1 from Play Store
  • Amnezia Premium Server
  • Several ISP and Beeline
Originally created by @yuriykulikov on GitHub (Aug 8, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-android/issues/39 Given an Android smartphone is connected to home WiFi and Amnezia is connected, when WiFi connectivity is lost and Android falls back to cellular connectivity, then the device loses internet access. Manually reconnecting Amnezia resolves the issue. ## Detailed description When internet connectivity is lost Amnezia UI still shows "connected". 8.8.8.8 cannot be pinged. The issue can be resolved by disconnecting and reconnecting Amnezia in the UI. It seems that this also occasionally happens when moving from cell to cell. ## Observed on - Pixel 8, Android 16 (latest) - Amnezia 4.8.8.1 from Play Store - Amnezia Premium Server - Several ISP and Beeline
Author
Owner

@orange11orange commented on GitHub (Aug 11, 2025):

Do you have Persistent keep-alive enabled?

<!-- gh-comment-id:3173182513 --> @orange11orange commented on GitHub (Aug 11, 2025): Do you have Persistent keep-alive enabled?
Author
Owner

@yuriykulikov commented on GitHub (Aug 11, 2025):

Do you have Persistent keep-alive enabled?

I do not think it is, as I was using a key to connect.

I have tried with configuration file which has keep alive set to 25, but it did not make any difference.

<!-- gh-comment-id:3173881383 --> @yuriykulikov commented on GitHub (Aug 11, 2025): > Do you have Persistent keep-alive enabled? I do not think it is, as I was using a key to connect. I have tried with configuration file which has keep alive set to 25, but it did not make any difference.
Author
Owner

@orange11orange commented on GitHub (Aug 12, 2025):

I have tried with configuration file which has keep alive set to 25, but it did not make any difference.

And if you set 5 seconds in the client itself, will the problem go away? And make sure that this is the number that will remain in the application window in Android. I saw something similar on the official WireGuard client and the problem, as I noticed, was solved with 5 seconds. It should be the same here, but maybe your situation is different.

<!-- gh-comment-id:3177477327 --> @orange11orange commented on GitHub (Aug 12, 2025): > I have tried with configuration file which has keep alive set to 25, but it did not make any difference. And if you set 5 seconds in the client itself, will the problem go away? And make sure that this is the number that will remain in the application window in Android. I saw something similar on the official WireGuard client and the problem, as I noticed, was solved with 5 seconds. It should be the same here, but maybe your situation is different.
Author
Owner

@yuriykulikov commented on GitHub (Aug 12, 2025):

And make sure that this is the number that will remain in the application window in Android.

Is there a way to check this in the app or better yet set it in the app? I do not see the option on Android.

<!-- gh-comment-id:3178686462 --> @yuriykulikov commented on GitHub (Aug 12, 2025): > And make sure that this is the number that will remain in the application window in Android. Is there a way to check this in the app or better yet set it in the app? I do not see the option on Android.
Author
Owner

@orange11orange commented on GitHub (Aug 12, 2025):

Is there a way to check this in the app or better yet set it in the app? I do not see the option on Android.

In AmneziaWG app click on your configuration that you want to change, after which all the data will appear, with keys, IP addresses, etc. and scroll all this to the very bottom and there it will be indicated (from bottom to top) - Last handshake, Statistics with received and sent data and above it will be written the time in seconds.

To set the Keep-alive time directly in the AmneziaWG app, you need to, while on the connection configuration page, tap on the pencil symbol in the upper right corner and then scroll to the very bottom of the list, where the desired field will be the third from the bottom.

<!-- gh-comment-id:3179304873 --> @orange11orange commented on GitHub (Aug 12, 2025): > Is there a way to check this in the app or better yet set it in the app? I do not see the option on Android. In AmneziaWG app click on your configuration that you want to change, after which all the data will appear, with keys, IP addresses, etc. and scroll all this to the very bottom and there it will be indicated (from bottom to top) - Last handshake, Statistics with received and sent data and above it will be written the time in seconds. To set the Keep-alive time directly in the AmneziaWG app, you need to, while on the connection configuration page, tap on the pencil symbol in the upper right corner and then scroll to the very bottom of the list, where the desired field will be the third from the bottom.
Author
Owner

@yuriykulikov commented on GitHub (Aug 13, 2025):

I am using 4.8.9.2 and I do not have a pencil on the connection page. See attached screenshot.Screenshot_20250813-125902.png

<!-- gh-comment-id:3183095284 --> @yuriykulikov commented on GitHub (Aug 13, 2025): I am using 4.8.9.2 and I do not have a pencil on the connection page. See attached screenshot.![Screenshot_20250813-125902.png](https://github.com/user-attachments/assets/926b152f-dab5-426c-bf84-0afb1f22b687)
Author
Owner

@orange11orange commented on GitHub (Aug 13, 2025):

I am using 4.8.9.2 and I do not have a pencil on the connection page. See attached screenshot.

Looks like we are talking about different apps. I was talking about AmneziaWG (1.1.2) by AmneziaVPN. I didn't notice "Amnezia 4.8.8.1" from your first post. But isn't there something similar in this app?

<!-- gh-comment-id:3183277903 --> @orange11orange commented on GitHub (Aug 13, 2025): > I am using 4.8.9.2 and I do not have a pencil on the connection page. See attached screenshot. Looks like we are talking about different apps. I was talking about AmneziaWG (1.1.2) by AmneziaVPN. I didn't notice "Amnezia 4.8.8.1" from your first post. But isn't there something similar in this app?
Author
Owner

@yuriykulikov commented on GitHub (Aug 13, 2025):

My apologies for the confusion. I was assuming that the app https://play.google.com/store/apps/details?id=org.amnezia.vpn is built from this source.
Android app installed from Play store does not have these settings.

<!-- gh-comment-id:3183409982 --> @yuriykulikov commented on GitHub (Aug 13, 2025): My apologies for the confusion. I was assuming that the app https://play.google.com/store/apps/details?id=org.amnezia.vpn is built from this source. Android app installed from Play store does not have these settings.
Author
Owner

@orange11orange commented on GitHub (Aug 13, 2025):

Android app installed from Play store does not have these settings.

If you still can't solve the problem, then depending on protocol and server you are using, you could try the AmneziaWG client, but I don't know if it will work with the servers you are using now (the config files are incompatible and only WireGuard and AmneziaWG protocols are supported) - https://play.google.com/store/apps/details?id=org.amnezia.awg

<!-- gh-comment-id:3184020100 --> @orange11orange commented on GitHub (Aug 13, 2025): > Android app installed from Play store does not have these settings. If you still can't solve the problem, then depending on protocol and server you are using, you could try the AmneziaWG client, but I don't know if it will work with the servers you are using now (the config files are incompatible and only WireGuard and AmneziaWG protocols are supported) - https://play.google.com/store/apps/details?id=org.amnezia.awg
Author
Owner

@yuriykulikov commented on GitHub (Aug 14, 2025):

Thank you, I will give it a try. Closed the issue.

<!-- gh-comment-id:3188017696 --> @yuriykulikov commented on GitHub (Aug 14, 2025): Thank you, I will give it a try. Closed the issue.
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/amneziawg-android#27
No description provided.