Hey everyone,
I was having the same issue with an old Asus Zenfone that was previously working great. Not 100% sure how it started, but it might have been related to a firmware update on my internet box. Anyway, this Android phone had random network issues on home wifi: some apps could connect to the internet, some could not
I suspected a DNS issue (accessing a website of mine through it's IP address worked but not through the domain name). Even stranger, some days it would work 100% normally, some days it would not, making it harder to understand and fix.
I tried connecting to another wifi network (another phone in hotspot mode) and it worked correctly.
Same if I used a VPN but using my regular wifi connection, everything was working correctly.
I inspected the network state using
Network Analyzer, and noticed that when it did not work,
the gateway IP and DNS server IP were not set at all. I have no idea why, but eventually, I ended up configuring my android device with a static IP instead of using the DHCP one. Not a perfect solution, but this way, the gateway and DNS IPs seem to always be correctly set.
Thought it could maybe help some of you