This is a question mostly for the sake of trying to learn more about how self-hosting works, and it is not vital that I resolve this. But if anyone wants to help me understand this, I would greatly appreciate it.

I have a media server running at home with certain Docker containers (Jellyfin, Navidrome and Audiobookshelf currently). I have not exposed these services to the internet, so they are currently only accessible on my home network, which is all I need for the time being. The server itself is connected to an external VPN provider as there may or may not be some torrenting involved at some point. Let’s say the name of the server is mediaserver.

From my laptop connected to the same network, I can access all these services through http://mediaserver.local: or http://:, while connected via the same VPN provider on the laptop also. On my cell phone (running CalyxOS), I am unable to do so. I need to disable VPN in order to access the services.

What is the difference between my laptop connected via VPN and my phone doing the same thing, both connected to my home network. I didn’t actually think the VPN would come in to play before making requests outside my home network, but that’s probably just me being ignorant.

  • I_Am_Jacks_____@lemmings.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    It depends on the VPN. Sometimes there’s a “block local network access” while connected. It could be a client setting or a server setting. Additionally, VPNs are all about routing. So you could run into a problem if you connect to a VPN where the remote network is the same as the IP address of the server you’re trying to connect to.

    So if it is that you’re having a conflict between the remote and local networks overlapping, you could change the IP addresses on your local network. It’s probably a good idea not to use the default subnet that your router gives you (like 10.0.0.0 or 192.168.0.0 or 192.168.1.0).

    • cyberwolfie@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Just checked this, and “Allows local access” is checked in the VPN application, and “Block all non-VPN traffic” is unchecked in Android settings.

      About potentially overlapping IPs: I did check, and they were all different (server, laptop, phone).

      • skankhunt42@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Try the VPN IP of your other box instead of the FQDN? I use tailscale+headscale to exit onto my home network from mobile.

        I had no idea that two hosts using the same VPN provider would/could be on the same network… I share an account with like 4 other people and we each get one device. Now I have to go look.