AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Wi-Fi clients seem to lose internet connection - Mostly testing iPhones - Switch to LTE and then back to Wi-Fi resolves

Open brettstark73 opened this issue 1 year ago • 9 comments

Prerequisites

Platform (OS and CPU architecture)

Darwin (aka macOS), AMD64 (aka x86_64)

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

v0.107.55

Action

browse the internet particularly from an iPhone app - Seem to see issue more at night or first thing in the morning but not sure if that has anything to do with it. Simply try to use like a news app, BBC or facebook or whatever to connect to the internet.

Expected result

apps/connection works as normal

Actual result

iphones seems not connected to the internet. switching to LTE and back to Wi-Fi after some time, 15s or so seems to somehow resolve the issue.

Adguard is still installed on a mac mini. Everything is wireless including the mac mini. The mac mini has a fixed IP address and I have set my wi-fi router to point to the mac mini for DNS as described in the setup of AdGuard. I have set the mac-mini to use an app called amphetamine to 'stay awake' indefinitely. I assume that is working.

Additional information and/or screenshots

No response

brettstark73 avatar Jan 12 '25 17:01 brettstark73

So what's the question?

What troubleshooting have you carried out to point the issue to being AGH?

Dynamic5912 avatar Jan 12 '25 20:01 Dynamic5912

Hi, Please provide some logs or details as to why you think this is an AdguardHome issue. There are many of us, myself included, that use AdGuardHome and have many iPhone/iPad devices attached to it (indeed, this is how I control to a degree the websites/ads that my children are subject to) and there are no known issues here.

This sounds like either a problem with your MacMini going to sleep, losing its network connectivity, or some other issue where you MacMini is sometimes unable to contact the upstream DNS server(s) configured. Does your home router prehaps have a maximum number of clients allowed or similar?

The other problem I can think is your router is configured to hand out two different IPs for DNS resolution to your clients, but only one works, and when the client rotates to the other it starts to fail (and turning Wifi off and on again makes it resort to the first working IP again)

I will leave this ticket open for a little bit, but will close unless you can provide some more solid logs/evidence that this is an AGH issue.

Thanks!

tjharman avatar Jan 12 '25 22:01 tjharman

Hello - Thanks for responses. I am not sure what trouble shooting to try actually. Before installing AGH, i very very rarely had any internet connectivity issues. So, I guess I can uninstall AGH or at least just point my routers to the Comcast DNS servers again and see what happens then. I use TP Link DECO mesh routers. The settings are a bit strange because you can't just set the DNS settings to any internal LAN IP address. You have to change the DNS settings under the DHCP setting for some reason - described here - https://www.tp-link.com/us/support/faq/1855/

One thing I thought of doing is just put a comcast DNS as the 2nd DNS router setting in case for some reason my mac mini can not be reached./is asleep etc.

One question also thanks - in the DNS setting - should i set 127.0.0.1 or the IP address of my mac mini which hosts AdGuard? Currently I have it set to the IP address of my mac mini but perhaps I screwed up and it should be 127.x.

thx

brettstark73 avatar Jan 12 '25 23:01 brettstark73

It should definetly be the IP address of your MacMini. 127.x is "host local" only.

tjharman avatar Jan 12 '25 23:01 tjharman

I will try to read AGH logging and see if i can attach the logs.

brettstark73 avatar Jan 12 '25 23:01 brettstark73

Hi @brettstark73 any further updates? Are you happy for me to close this or do you still feel this is an AdGuardHome bug/issue?

tjharman avatar Jan 15 '25 03:01 tjharman

I know this is an older one…

I have somewhat similar issues, but I notice it a lot more on WiFi Apple devices. I don’t know if my other report is related (https://github.com/AdguardTeam/AdGuardHome/issues/7643).

Essentially any WiFi Apple device will take 5-10 seconds to load a webpage when it first wakes up. So for example if my phone has been in my pocket and I pull it out to look at email, my email won’t load for 5-10 seconds. After that, everything is generally fine and nothing is slow. My UniFi AP has some logs indicating a timeout reaching DNS.

The other symptom is that I’ll be on my phone and the “no network connection” message will appear. Hitting stay on WiFi gets it working after a second.

Swapping to the Adguard public DNS IP (or any public DNS) on my iPhone seems to resolve the issue. So I believe it is somehow limited to AdGuard Home. I may swap one device to be a PiHole as an ultimate test…

geransmith avatar Mar 06 '25 04:03 geransmith

@brettstark73 are you using UniFi for your home network?

geransmith avatar Mar 06 '25 15:03 geransmith

Adding some extra data; swapping to PiHole or to Technitium for DNS seems to prevent this issue. I suspect it is something specific with AdGuard.

geransmith avatar Mar 10 '25 18:03 geransmith