So, since my last reply, the phone stopped reaching the local network again, I'll consider the problem as not fixed and resume answering the replies:

r134a It's the default modem configuration, no VLANs in place. Other devices access the server from browsers using the same wifi access point. Not connected as a guest. Why do you think that is not related to GrapheneOS? Asking since it is the only device that isn't reaching the servers in local network

0xsigsev No I don't have whitelists configured. My phone ip is 192.168.2.157 and the server ip is 192.168.2.117

cdflasdkesalkjfkdfkjsdajfd thanks for noticing, I was already aware that i could share private ips, but somehow I tend to censor that kind of info for some reason :shrug:
Anyhow, all the devices (including the server) are connected through the wifi

    de0u I tried accessing from vanadium once and it connected. However, the second time (right at this moment) I tried and it gave me a quick answer of ERR_ADDRESS_UNREACHABLE (indicating in my interpretention no presence of firewalls whatsoever).

    As I was typing this answer, I refreshed the servers page on vanadium and it happened to have again access to the server.

    As far as I can see, there is some rule in place, somewhere I can't tell, that is not letting me reliably access the local network from my phone.

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

      It may be due to strict mode (or whatever the name is) is enabled and you can't connect to your instance via http. Try https:// your instance.

        Just a guess, what happens if you disable cellular connectivity, that is, you put your phone in airplane mode with Wifi still enabled?

        I am wondering if it maybe isn't trying to connect through the Wifi. Maybe the cellular network provider is assigning an IP address in the same 192.168.2.0/24 range, confusing the system as where to send out the packets?

          estevaoem So, since my last reply, the phone stopped reaching the local network again, I'll consider the problem as not fixed [...]

          So, when the problem is in its non-fixed state, what error message does Vanadium report? Does Vanadium report that error quickly or slowly?

            0xsigsev Doesn't help. Since I have not configured TLS nor there are fallback implementations for when the server is called on port 43, the server is yet unreachable.

            ryrona Same behavior. I disabled the mobile network as it maybe could be interfering, but that's not the case.

            de0u mind checking if my previous answer answers your question?

            de0u By the way, the error I got was ERR_CONNECTION_FAILED, not ERR_ADDRESS_UNREACHABLE, sorry for the confusion

            estevaoem It's the default modem configuration, no VLANs in place. Other devices access the server from browsers using the same wifi access point. Not connected as a guest. Why do you think that is not related to GrapheneOS? Asking since it is the only device that isn't reaching the servers in local network

            I've mentioned that it most likely is not related to GrapheneOS, it could be though. But i for example also have a bunch of selfhosted services and have no issues, combined with the fact this is the only report regarding an issue like this, made me conclude it most likely isn't related to GOS.

            Did u try the suggestion of @0xsigsev by using https://, as far as i remember nextcloud automatically implements https with a self signed certificate. Did u try just for testing with a gecko based browser, for examole firefox? In my recent experience it seems firefox is less strict sometimes. (I've had a service (materialious) over https remote proxying another service accidentaly over http (invidious), and chrome refused to serve http content from a remote source requested by a https domain. Firefox on the other hand did't comolain and allowed mixed content.

            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.

            If your phone's settings for your home network include "per-connection randomized MAC", can you try switching to "per-network randomized MAC", and then rebooting your router?

              • Edited

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

              Do u have any other services selfhosted than nextcloud? Do u have issue with these? Perhaps try setting up a simple apache webserver and see if u can connect to it with phone.

                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).