Apparently apps now need the “Nearby devices” permission to be able to access sites hosted on your local network. I just spent forever trying to figure out why firefox wouldn’t load my local nextcloud instance. Hopefully this post saves someone else that pain. Local network permission in Android 17


For someone like me who doesn’t want any app to touch my local network without my knowledge and explicit approval, this is a very welcome change.
I guess this makes sense if you think about it as local routing rules for a sandboxed container. If you want to limit what a container can see to exactly the hosts you want it to see, you’d do something like this.
I’d just never assume this will limit an app that is actively malicious, just ones that are careless and scan-happy.
Its poor phrasing and overly broad is the bigger issue. And if i wanted to keep a device away from my network, it should not be the device’s setting. If i want to keep someone out, i lock the door, not simply assume the person will ask permission.
Yeah problem is now I have to give my whole web browser and some other apps permission to scan for local devices in order to simply browse to a self-hosted website or IoT device. It really should be separate. I thought this this permission is designed to block searching for WiFi and Bluetooth devices in your area, which can then be used to derive your physical location without needing the location permission. The list of APs can be checked against databases that Google and Apple and such have built to finds your location more accurately with the diminishing GPS satellite constellation. So the fact that I have to give up a block on AP scanning to get access to my local services and IoT devices in any apps or browsers that need it, kind of sucks.
They always had permission to scan for local devices before this change came around.
Before what change? The local network permission or before the Nearby Devices permission? The Nearby Devices permission has existed since Android 13 or something. Anyway for several years. But this new change to make that permission also include this block of local IP addresses is new. Now I have to give the full set of permissions in the Nearby Devices group to an app just so it can access a local IP address. That’s my gripe. I don’t want to let them scan WiFi or any other things in the Nearby Devices permission group, but because of this change I have to in order to access my light switches or my cameras or my router or any other things on the local network. I want to have access to those devices without giving the app WiFi scanning permissions which I’ve had blocked for many years because it’s a way to get precise location without the precise location permission.
It’s only a step forward for consumer convenience, stop resisting!
100%
IMO, “nearby devices” is bad wording and the icon is the same one as NFC, IIRC.
on my laptop it’ll say something like “local network” which is more intuitive.
Apple does this regarding a popup requesting access to the local network. It saying “nearby devices”, for me, is a big no thanks.
OTOH, once you allow it for your phones browser, it’s presumed any site that sends a request triggering access would automatically be granted it.
Time for a separate browser to use for local-only access?
Browsers should be smart enough to limit websites with their own permissions dialog to control what can access local stuff or not
If you add some cors headers browsers will literally refuse to make requests to that uri from other origins.
I do agree that this can be useful, but it feels weird as hell that this is now opt-in, whereas apps downloading viruses from the internet, or third-party keyboards uploading your passwords, still cannot be restricted on stock Android.
you can absolutely restrict apps from accessing the internet on android (to an extent)