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

  • shads@leminal.space
    link
    fedilink
    English
    arrow-up
    2
    ·
    43 minutes ago

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

  • N0x0n@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    27 minutes ago

    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 🤷

  • darklamer@feddit.org
    link
    fedilink
    English
    arrow-up
    21
    ·
    3 hours ago

    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.

    • 51dusty@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      ·
      2 hours ago

      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
        link
        fedilink
        English
        arrow-up
        2
        ·
        24 minutes ago

        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?

    • irotsoma@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 hour ago

      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.

  • NarrativeBear@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    1 hour 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.

  • CameronDev@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    2
    ·
    edit-2
    3 minutes ago

    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
      link
      fedilink
      English
      arrow-up
      14
      ·
      3 hours ago

      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
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 hour 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 (╯°□°)╯︵ ┻━┻

      • CameronDev@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        2 minutes 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)

      • tofu
        link
        fedilink
        English
        arrow-up
        5
        ·
        3 hours ago

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

    • irotsoma@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      2 hours ago

      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.