Let’s say I setup some subdomains and then point them to my home server via Cloudflare tunnel.

If I use one of those subdomains from my personal PC on the same network as my home server, to watch a movie for example, is all of that traffic going out to the internet and then back? Or does all the traffic stay internal once the connection has been made?

  • curbstickle@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    3 months ago

    Depends on the server obviously, but most will pass off their local once the initial handshake is made.

    Once that is done, DNS isnt relevant anymore.

    Edit: This is especially true for media (movies, TV) servers.

    • CameronDev@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      How does that work? Do they do something like what tailscale does to negotiate the connection? Can you point me to any doco for how that works?

      • curbstickle@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        Remember that we’re talking about a server on your local network, and a device on the local network to make the connection for the stream. We aren’t talking about streaming over the internet.

        • Client looks up server via DNS
        • Client connects to public IP
        • Client handshakes to server
        • Server announces to client available connections (public, local)
        • Client continues connections with local address

        There is no need for tailscale or anything, this is a local connection. The only thing the public address is doing is the initial call to the server.

        • CameronDev@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          3 months ago

          I get how that could work, but what services actually do that? Homeassistant can, but that needs to be setup explicitly for it to work.