Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internet fails to work when network is changing from wifi to mobile data on some networks #4265

Closed
nastavoi opened this issue Oct 27, 2022 · 22 comments

Comments

@nastavoi
Copy link

nastavoi commented Oct 27, 2022

I'm facing an issue causing internet failing to work when my Network is changing from wifi to mobile data (e.g. when I move outside of my wifi network). Restarting AdGuard resolves the issue (until the next network change).

Issue Details

  • AdGuard version:
    • 4.0 nightly 35
  • Filtering mode:
    • Local VPN
  • Device:
    • Pixel 7 Pro
  • Operating system and version:
    • Android 13
  • Root access:
    • No

Expected Behavior

Internet access should be active at all times when network change from wifi to mobile data e.g. due to poor wifi signal, without the need to restart AdGuard.

Actual Behavior

internet failing to work when my Network is changing from wifi to mobile data (e.g. when I move outside of my wifi network). Restarting AdGuard resolves the issue (until the next network change). I'm able to reproduce it every time.

Additional Information

I will send debug logs to [email protected] in a minute. Recorded at around 18:28 27.10.2022.

EDIT: I've sent the logs.

@Tornhoof
Copy link

Same thing here on an Android 12, OnePlus 2 with Adguard 3.6.10. according to the filter logs, the DNS lookups fail until I restart Adguard.

@floxigen
Copy link

floxigen commented Nov 2, 2022

I've the same issue here with pixel 7 pro as well

@floxigen
Copy link

floxigen commented Nov 6, 2022

It's driving me nuts everytime I get home I've to restart adguard

@maxikuzmin
Copy link
Contributor

@Tornhoof @nastavoi @floxigen is AdGuard VPN installed with kill switch setting? This behavior happens with this setting. I've checked, but I don't have this behavior repeated, everything works correctly.

To troubleshoot this issue, we need to get additional logs.

Here's what we need you to do:

  • Collect the debug log as it's explained here;
  • Remember the exact time when the issue was reproduced. We will need it to find the corresponding records in the log file;
  • Additionally, capture the system bug report after reproducing the issue. Here's the instruction;
  • Send both files to [email protected]. Mention the Github issue number and the exact time when the issue was reproduced.

It is also a good idea to export your AdGuard settings and attach them to an email

@nastavoi
Copy link
Author

nastavoi commented Nov 7, 2022

@maxikuzmin
I've sent all the data to [email protected]. The issue was recorded at around 17:39-17:41.

I don't use any VPN software. Like I've said earlier, I can reproduce the issue every time - when AG is turned on and I leave my wifi network so that the phone will switch to mobile data, apps can't reach the internet, until I restart AG.

@XBadFellaX
Copy link

XBadFellaX commented Nov 10, 2022

I have also had this issue for a long time on my samsung smartphone but never reported it. When I go out of the house and in my car and drive away, as soon as the network switches from WiFi to Mobile Data the internet stops working, I notice that because I run spotify when I sit in my car when I am still on Wifi then when It switches to mobile data the songs stop playing. Then I have to turn off adguard and turn it back on or even turn mobile data off and on sometimes for it to work again.

@maxikuzmin
Copy link
Contributor

@nastavoi @XBadFellaX we are looking into this issue, we need a little more time

@piquark6046
Copy link
Member

piquark6046 commented Nov 28, 2022

It seems that this issue also is caused with S. Korean mobile network environment.
https://www.clien.net/service/board/cm_andro/17741812

For me, It does not appear even if the condition is matched.

@nastavoi
Copy link
Author

nastavoi commented Dec 1, 2022

@maxikuzmin hey, any updates?

@maxikuzmin
Copy link
Contributor

@nastavoi later will need to check in version 4.0
For now you can try to choose another DNS. Try AdGuard DNS Regular or Non-Filtering Regular. That might help

@nastavoi
Copy link
Author

nastavoi commented Dec 7, 2022

@maxikuzmin do you mean 4.0 stable when its released or nightly? I'm on 4.0 nightly right now.

@maxikuzmin
Copy link
Contributor

@nastavoi yes, the stable version. Did changing to a different DNS help you?

@nastavoi
Copy link
Author

@maxikuzmin yes, it does work fine if I change the DNS to e.g. cloudflare or Google (but it's just a workaround for me)

@adguard-bot adguard-bot changed the title Internet failing to work when network is changing from wifi to mobile data Internet failing to work when network is changing from wifi to mobile data on some networks Jan 12, 2023
@adguard-bot adguard-bot changed the title Internet failing to work when network is changing from wifi to mobile data on some networks Internet fails to work when network is changing from wifi to mobile data on some networks Jan 12, 2023
@maxikuzmin
Copy link
Contributor

@nastavoi @floxigen @Tornhoof we solved your problem in the 3.6.11 Beta 1 update. Please update to this version and check it out. Let us know the result

@nastavoi
Copy link
Author

@maxikuzmin thanks, great news, i'll test it, but before I do, can you confirm that 3.6.11 beta is actually more up-to-date than 4.0 nightly 37 which I'm currently using?

@maxikuzmin
Copy link
Contributor

@nastavoi actually, version 4.0 nightly 37 should also fix this problem. You can check it on the version you want :)
Please let us know the result

@Tornhoof
Copy link

Looks like the fix in 3.6.11 Beta 1 is working for me. I don't have any failing DNS requests. Thanks.

@maxikuzmin
Copy link
Contributor

@Tornhoof great! I'll close this issue then

@nastavoi
Copy link
Author

nastavoi commented Jan 18, 2023

@maxikuzmin fixed for me too (4.0 nightly), thanks for the help!

@Batman2814
Copy link

would this issue explain when I get a message saying connected without internet. i would have to toggle the wifi on and off or would this be a issue that not related to Adgaurd because when i researched this issue it did say the the DNS could be related why I'm having this issue. so if you could get back to me if we are talking about the same issue?

@maxikuzmin
Copy link
Contributor

@Batman2814 in what filtering mode do you do this? Does it depend on whether AdGuard is on or off? Please start a separate issue

@Phyore
Copy link

Phyore commented Sep 10, 2024

I get this issue also, finally found out it was when switching between mobile data and wifi

Pixel 8 pro, latest adguard

Edit: More so when on WiFi and I leave the house, WiFi stays on but it connects to data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants