this post was submitted on 25 Nov 2026
227 points (100.0% liked)

Selfhosted

64018 readers
823 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

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

top 50 comments
sorted by: hot top controversial new old
[–] nykula@piefed.social 9 points 6 hours ago

So that's what prevented my LAN app from loading on phones for weeks. I've had issues with Windows anti-malware tools since summer and thought they're at it again. But this time it was in fact Android, the client side. Thanks for pointing this out.

This is why I am deeply distrustful of phone updates (and updates in general).

[–] LazyOldPervert@lemmus.org 8 points 6 hours ago (1 children)
[–] KenOh@feddit.online 5 points 6 hours ago

Yes! I was like wow! DBZ hitting the front page.....oh.

[–] smiletolerantly@awful.systems 4 points 7 hours ago (1 children)

Wait, sorry for being dense, but: does that mean they "only" ("""""only""""") need the permission, or for location services to be on?

I.e. can I no longer access lan-sites when this is off in the quick settings?

[–] sculptor0725@sh.itjust.works 3 points 6 hours ago (2 children)
[–] smiletolerantly@awful.systems 9 points 6 hours ago (1 children)

What the FUCK. I have this disabled 99.9% of the time, yes because privacy, but also just because battery. Fuck google so incredibly hard.

[–] A_Random_Idiot@lemmy.world 5 points 2 hours ago

Its location being forced on to use bluetooth all over again.

I guarantee you the only reason its needed is to enable google spyware to get around some privacy setting or something.

[–] hereiamagain@sh.itjust.works 4 points 6 hours ago (1 children)

That's dirty. And likely not a coincidence.

[–] sculptor0725@sh.itjust.works 1 points 20 minutes ago

I don't really understand what the issue is. It's not using the GPS or war driving features to do that, just allowing you to access your LAN. If I had to turn on GPS every time I wanted to access self-hosted LAN services I'd be pretty annoyed.

[–] bier@feddit.nl 18 points 10 hours ago

This feels like apps that want permission to wifi control and now you have to give them access to full location otherwise it won't work. Why not just let me enable access to wifi but not gps/location, and yes I understand from wifi network scans you can also determine location, but still I want separate control.

[–] shell@nord.pub 21 points 10 hours ago

Once again doing asshole shit

[–] Nephalis@discuss.tchncs.de 1 points 5 hours ago

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

[–] krashmo@lemmy.world 12 points 11 hours ago

You just solved a problem I've been half-heartedly troubleshooting for a few days now. I was trying to figure out why my wife's phone wouldn't connect to my mealie server and this was it. Thank you for posting this!

[–] pHr34kY@lemmy.world 17 points 12 hours ago* (last edited 12 hours ago) (1 children)

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.

[–] skiguy0123@lemmy.ca 2 points 7 hours ago (1 children)

My setup is using a global ip6 so I don't have to deal with dns horizon crap, but my server is still on reachable locally. I still had this problem.

[–] pHr34kY@lemmy.world 1 points 7 hours ago* (last edited 7 hours ago)

I got around it by leveraging a small quirk that my ISP does. They assign a /128 to my WAN, but then give me /48 prefix delegation. This means my WAN and LAN are on entirely different subnets and it doesn't trip the nearby devices filter.

[–] darklamer@feddit.org 64 points 16 hours ago (5 children)

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.

[–] teawrecks@sopuli.xyz 1 points 32 minutes ago

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.

[–] pauljhenry@lemmy.ml 11 points 10 hours ago* (last edited 10 hours ago)

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.

[–] irotsoma@piefed.blahaj.zone 29 points 14 hours ago* (last edited 14 hours ago) (1 children)

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.

[–] solxix@pawb.social 5 points 12 hours ago (1 children)

They always had permission to scan for local devices before this change came around.

[–] irotsoma@piefed.blahaj.zone 5 points 11 hours ago* (last edited 11 hours ago) (1 children)

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.

[–] Kenny4tunes@lemmy.world 0 points 8 hours ago

It's only a step forward for consumer convenience, stop resisting!

[–] 51dusty@lemmy.world 34 points 15 hours ago (1 children)

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.

[–] ten8tp@reddthat.com 5 points 13 hours ago (1 children)

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?

[–] Natanael@infosec.pub 3 points 13 hours ago (1 children)

Browsers should be smart enough to limit websites with their own permissions dialog to control what can access local stuff or not

[–] Ghoelian@piefed.social 4 points 11 hours ago

If you add some cors headers browsers will literally refuse to make requests to that uri from other origins.

[–] Ephera@lemmy.ml 7 points 12 hours ago (1 children)

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)

[–] shads@leminal.space 25 points 14 hours ago

I should have posted my own similar findings a week ago when I lost 25% of my remaining hair. Sorry.

[–] nibbler@discuss.tchncs.de 5 points 11 hours ago

I guess its also due to those ,'residential proxy' SDKs being bundled up&down. At least protect the home network.

Now I'm wondering if my highly segmented home network leads to less security eventually 😵

So, is only the local net blocked or all rfc1918?

[–] NarrativeBear@lemmy.world 12 points 14 hours ago* (last edited 14 hours ago)

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.

[–] eskuero@lemmy.fromshado.ws 1 points 9 hours ago
[–] N0x0n@lemmy.ml 3 points 13 hours ago* (last edited 13 hours ago) (3 children)

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 🤷

[–] skiguy0123@lemmy.ca 1 points 7 hours ago (1 children)

I don't think that would have solved the problem. And I tried to do the whole split dns thing for ip4, with my router's hosts table, but it kept getting ignored at various layers and I just gave up.

[–] N0x0n@lemmy.ml 1 points 6 hours ago

I wish I could give it a try, but I do not have a compatible android 17 device ! I'm not sure an emulated device would suffice as test purpose :s !

[–] vext01@feddit.uk 3 points 11 hours ago (3 children)

My ISP supplied router doesn't add DNS entries for local hosts. Sure, I could set up a dns server on my NAS, but then nothing works if the nas goes down.

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

[–] xavier666@lemmy.umucat.day 1 points 6 hours ago

I know your pain. I solved it after 2 years when I finally built my own opnsense router with a DNS on it. No need to host the DNS on a separate machine.

[–] N0x0n@lemmy.ml 1 points 7 hours ago (1 children)

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 !

[–] vext01@feddit.uk 1 points 3 hours ago

Life's too short man. I have a million other things going on.

[–] lemmyvore@feddit.nl 3 points 10 hours ago

I mean, it's mainly the NAS that needs to be reachable to a specific address isn't it? You could use mDNS so it can advertise itself to the network. mDNS is pretty well supported on all OS nowadays. And if it goes down it's kind of moot because, well, both the name and the services are down. 🙂

[–] nibbler@discuss.tchncs.de 3 points 11 hours ago

Most people habe that, often its the ISP provided router

[–] Decronym@lemmy.decronym.xyz 1 points 11 hours ago* (last edited 15 minutes ago)

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
nginx Popular HTTP server

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

[–] CameronDev@programming.dev 3 points 16 hours ago* (last edited 13 hours ago) (2 children)

Setting up some domains that resolve to the local addresses might be worth your while now, otherwise youll have to change that setting on every device.

Edit: im told this won't help, although its still probably a good idea to have setup anyway.

[–] Onomatopoeia@lemmy.cafe 16 points 16 hours ago* (last edited 16 hours ago) (4 children)

That still ends up on the local net - wouldn't it still be blocked because (I assume) it's blocking any local IP?

I mean what kind of nonsense is this?

[–] Vakbrain@lemmy.dbzer0.com 9 points 14 hours ago* (last edited 14 hours ago)

Yes FF will block without the permission

I have several proxmox servers in my homelab and use a free duckdns.org domain (using 192.168.x.x to make it work only from within my network) with a reserve proxy (nginx) w/ https (letsencrypt)...

Despite all that, firefox still requires the Nearby Devices permission to work (╯°□°)╯︵ ┻━┻

[–] tofu@lemmy.nocturnal.garden 7 points 15 hours ago

I think the idea is not too bad. Preventing evildoers on your phone to portscan your LAN. It's a firewall

[–] CameronDev@programming.dev 2 points 15 hours ago* (last edited 13 hours ago)

~~I will check, but I believe the intent is to prevent JavaScript from network/port scanning your network. So if you connect via DNS, thats allowed, but using the same IP directly is forbidden.~~ this is all wrong apparently.

~~I will test and get back to you.~~ (I can't test, I dont have any android 17 devices, sorry)

load more comments (1 replies)
[–] irotsoma@piefed.blahaj.zone 8 points 14 hours ago (1 children)

It doesn't matter if the URL you enter is a local IP address or a domain that resolves to a local address. Both get blocked.

load more comments (1 replies)
load more comments
view more: next ›