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

  • N0x0n@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    2
    ·
    edit-2
    17 hours 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 🤷

    • skiguy0123@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 hours ago

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

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

        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 !

      • lemmyvore@feddit.nl
        link
        fedilink
        English
        arrow-up
        3
        ·
        13 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. 🙂