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

  • Denys Nykula@piefed.social
    link
    fedilink
    English
    arrow-up
    10
    ·
    15 小时前

    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.

  • bier@feddit.nl
    link
    fedilink
    English
    arrow-up
    22
    ·
    19 小时前

    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.

  • pHr34kY@lemmy.world
    link
    fedilink
    English
    arrow-up
    19
    ·
    edit-2
    21 小时前

    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.caOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      16 小时前

      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
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        16 小时前

        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.

  • shads@leminal.space
    link
    fedilink
    English
    arrow-up
    28
    ·
    23 小时前

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

  • krashmo@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    20 小时前

    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!

  • smiletolerantly@awful.systems
    link
    fedilink
    English
    arrow-up
    4
    ·
    16 小时前

    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?

    • Jenseitsjens@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      edit-2
      9 小时前

      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.

      • smiletolerantly@awful.systems
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 小时前

        Ok, thanks for checking. That’s a fair bit better then.

        I also don’t see something wrong with this in theory… But throwing it together with the nearby devices is a puzzling implementation already.

      • smiletolerantly@awful.systems
        link
        fedilink
        English
        arrow-up
        14
        ·
        15 小时前

        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
          link
          fedilink
          English
          arrow-up
          8
          ·
          12 小时前

          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.

        • sculptor0725@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          2
          ·
          9 小时前

          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.

  • Nephalis@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    15 小时前

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

  • NarrativeBear@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    2
    ·
    edit-2
    24 小时前

    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.

  • nibbler@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    6
    ·
    21 小时前

    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?

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 小时前

    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]

  • N0x0n@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    2
    ·
    edit-2
    23 小时前

    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.caOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      16 小时前

      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
        link
        fedilink
        English
        arrow-up
        1
        ·
        16 小时前

        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
      link
      fedilink
      English
      arrow-up
      3
      ·
      21 小时前

      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
        link
        fedilink
        English
        arrow-up
        2
        ·
        16 小时前

        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.

      • lemmyvore@feddit.nl
        link
        fedilink
        English
        arrow-up
        3
        ·
        19 小时前

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

      • N0x0n@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        16 小时前

        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 !