posted in Selfhosted

Android 17 permissions prevent accessing local sites

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

enPage

Replying to an earlier post

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.

Replying to an earlier post

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.

Replying to @⁨skiguy0123@lemmy.ca⁩

Look at the permissions setting called “Nearby Devices”. This needs to be granted to a app you would like to access your local network.

Scratched my head for a while as well when I discovered not being able to access local self-hosted service on my phones browsers.

Downside is “Nearby Devices” permissions also control Bluetooth and NFC if I am not mistaken.

Replying to @⁨skiguy0123@lemmy.ca⁩

If a device’s DNS server is on a local network, traffic to / from it (at port 53) doesn’t require local network access permission.

Wait… You guys Don’t have a DNS server in your local network? Maybe time to get a pihole+unbound combo attached to your local network.

Or maybe I’m reading this wrong? Anyway, I’m still happily on 14 and probably can’t go further then 16 anyway 🤷

Replying to @⁨vext01@feddit.uk⁩

I just resigned myself to assigning static IPs from the DHCP server and then memorising IP addresses.

Seriously ? That was the first thing I was trying to solve the first days I began self-hosting. Having local domain names (SERVICE.home.lab) with self-signed certificates and my own dns server was the first thing I did.

Sure, I could set up a dns server on my NAS, but then nothing works if the nas goes down.

You could add a secondary DNS server on your devices in case your NAS goes down. Or have a little raspberry pi 3 or any kind of old android SoC devices that’s flashable with armbian in your network that should suffice for pihole+unbound !

Replying to @⁨skiguy0123@lemmy.ca⁩

A started a discussion on this a little while back.

It sucks that we have to figure it out on our own. There’s zero telegraph when it starts happening. Connections just don’t work.

In the end I made my DNS resolve to my external IP address from inside my home network. It only blocks if it’s a private IP (IPv4), or a GUA in the same /64 subnet (IPv6).

My DNS server (DoT) will resolve the WAN IP address for my server if you’re coming in on the WAN interface, so it kinda works.

vger.toHow is everyone dealing with Android 17's "Nearby Devices" change?

Replying to @⁨skiguy0123@lemmy.ca⁩

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters AP WiFi Access Point DHCP Dynamic Host Configuration Protocol, automates assignment of IPs when connecting to a network DNS Domain Name Service/System ISP Internet Service Provider IoT Internet of Things for device controllers NAS Network-Attached Storage VPN Virtual Private Network nginx Popular HTTP server

[Thread #178 for this comm, first seen 25th Nov 2026, 07:50] [FAQ] [Full list] [Contact] [Source code]

Hachyderm.ioImran Nazar ~ عمران نزر (@Two9A@hachyderm.io)3.24K Posts, 316 Following, 296 Followers · Front-end #typescript developer and general keyboard tapper; author of Internet RFC 7168 (Hypertext Coffeepot Control Protocol for teapots); occasional plumber, more than occasional #c64 #retrocomputing enthusiast, terrible at classical #piano. Header photo is a verdant scene looking over the landscape near Buxton, England, taken from a single-track country road.

Replying to @⁨smiletolerantly@awful.systems⁩

I just tested this and the answer is No. The app needs the nearby devices permission to acces devices in your LAN and this is not tied to location permissions.

My Firefox App has no location permission and just nearby devices and works fine, regardless of the global Location services toggle.

No clue what the other guy is on about

And in my opinion, it’s a good thing that it works this way. The alternative is that any app with network permissions (which basically includes pretty much all apps) can go ahead and snoop in your home network.

Replying to @⁨skiguy0123@lemmy.ca⁩

Somehow this confuses me. They want me to send all locational information to them when I want to use my selfhosted services?

BUT if I use my own DNS-Resolver (pihole, adguard) this is obsolete and I can continue to adress my services without activating anything? And furthermore does this mean, I need to add a dns name to all my services?

“If a device’s DNS server is on a local network, traffic to / from it (at port 53) doesn’t require local network access permission.”