Thanks guys for the support so far, truly a helpful and strong community.

de0u already configured the phone settings to per-network randomized MAC on both wifi frequencies but didn't reboot the router yet. Will give it a try and see if the problem persists.

r134a Apologies, in my last response i've asked if u tried https:// i just see u did. I've started typing when that comment wasn't there yet, and received a phone call, then finished typing and submit :)

no worries (:
I do have another server running in the same machine and it does happen to share the same problem of the phone not being able to reach it sometimes.

At this point I'm suspecting this is not related to grapheneOS but rather something on my network as you mentioned. Got the same problem on wife's iPhone, but not on other laptops and tablets we have.

    estevaoem Hmm, do u mind sharing what service? I was suspecting it perhaps was something with your nextcloud config, although network is certainly plausible aswell.

    Can u try maybe with a simple apache webserver with just http? It's likely its already included on your server and should be as simple as sudo systemctl start apache2, then check http://ip:80 (if 80 isn't used by any other servive).

      Just chiming in. This might be related to a few things. Some more info would be great:

      • are VLANs set up in your network? (You didn't answer that yet)
      • is a reverse proxy set up?
      • is there any service on your network providing DNS or are you using a well-known service such as Cloudflare, Google or Quad9?

      Most importantly: what does your network setup look like?
      For example, are router, switch and AP separate devices or all in one?
      Are there any firewall rules set anywhere?

      This would help greatly in the troubleshooting process.

        estevaoem At this point I'm suspecting this is not related to grapheneOS but rather something on my network as you mentioned. Got the same problem on wife's iPhone, but not on other laptops and tablets we have.

        For me this turns up the volume on the "reboot the router" suggestion.

        Couple of ideas;

        1) Nextcloud does not play well with non-encrypted connections.
        2) Some router configurations don't allow internal network connections.

        • Edited

        estevaoem Worth mentioning that this is only happening on my phone: when the phone looses connectivity to my local network, all other devices don't.

        I'm having the same problem. I am able to connect to a VLAN access point, which has no WAN access. However, my GrapheneOS Pixel 7pro device will reliably disconnect after a short period of time, maybe 20-30 seconds on average. All other devices can connect to the same AP without any problems.

          r134a
          Yes, I'm not using a randomized MAC.

            elih Hmm, perhaps it is because there's no internet connection? I remember vaguely having an issue with dns on a specific AP, consequently having no internet, and my device disconnected from that AP after a short while and connected to one of my other trusted AP's. Other than that i can't really think of something is u don't have a randomized mac.

            After playing around with various router and GrapheneOS settings, I may have solved my disconnect problem. In the Network details settings for this specific AP on my Pixel, I changed the Network usage setting to "Detect automatically" from "Treat as unmetered". The connection has now held for over 5 minutes (knock on wood).

            Guys, sorry for missing for 2 days.

            r134a The other service is a tabby server, primarily serving my laptop.

            Interesting enough, the iPhone wasn't able to access 192.168.2.117:8085. However, as I started apache2 and connected both devices to 192.168.2.117:80, both phones could connect to 192.168.2.117:*.

            Both servers (8080 and 8085) are running through docker, would that be the issue somehow?

            n3t_admin Thanks for joining the discussion.

            • Accessed the router admin page this morning and could verify no VLAN rules are configured.
            • There are no reverse proxies configured afaik
            • I have not configured any service on my network that provides DNS (not that I'm aware of)

            My network setup is the simplest you could imagine: a router serving wifi to all devices, no firewall rules on the server computer nor the router.

              estevaoem interesting, this would imply that it probably indeed isn't really related to GrapheneOS. Probably u have this right, it wouldn't make many sense u could connect from other devices, but on your docker config are u postitive 8080 and 8085 are the public facing ports? Also on your docker config are u using 0.0.0.0 instead of 127.0.0.1?

                estevaoem Was the advice of rebooting the router somehow missed?

                  r134a yes, positive for port and host serving address. So much it is reliably accessible for 2 of the 4 client devices.

                  Again though, at least on iPhone, this connection ability is latter lost after some moments.

                  fid02 yes, I missed it. Couldn't do that back then because that would disrupt other peoples work in the house. Anyways, I just rebooted the router and apparently all devices are able to access servers on port 8080 and 8085, I'm watching for if the connection gets lost throughout the day.

                  fid02 interesting, rebooting the router actually seems to have fixed the problem. 2nd day streak in which both phones connect to the local network without issues. But why is that? Why rebooting the router granted both devices access to the local network?

                  Probably the issue u was experiencing was caused because of using 'per connection randomized mac', some routers don't play well with that. After u got the advice here to change it to 'per network randomized mac', u mentioned u did that but did not reboot the router yet. The reboot was adviced to clear your routers DHCP table.