• GolfNovemberUniform@lemmy.ml
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        2 months ago

        But why do you need a server for such a program? Can’t it be P2P or with the server stuff running on the client machine?

        • Kazumara@discuss.tchncs.de
          link
          fedilink
          arrow-up
          10
          ·
          2 months ago

          The server is used for hole punching, to open up a P2P connection thorugh NATs and Firewalls. If it doesn’t work the server also relays the traffic between the clients.

          Getting an end to end connection through todays internet is unfortunately not easy for an average user.

        • dethada@lemmy.zip
          link
          fedilink
          arrow-up
          6
          ·
          edit-2
          2 months ago

          Theoretically, without the server, every time you want to connect to a peer you would have to figure out what’s their public IP address is, which can change. The server acts as a middleman between the peers so you dont have to do this manually, all peers only need to know the server’s IP address to connect to each other. The server is really only used for this initial linking up of peers, afterwards the connection is P2P (if possible, they fall back to a relay server if P2P fails).

          • Semperverus@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 months ago

            It’d be great if they implemented the same identity encryption/obfuscation that Signal uses but for the IPs.