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.
Can't connect to my home's local network
- Edited
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?
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.
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.
elih Did u check these settings as mentioned in this post already?
https://discuss.grapheneos.org/d/20248-cant-connect-to-my-homes-local-network/17
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).
- Edited
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?