Hi,

I’ve just tested SimpleX. Great piece of software, all the options are really well thought …

Sadly it’s not P2P (all the messages pass by servers… ) is there a way to make-it P2P ?

Thanks.

  • rrobin@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    8 months ago

    Depends a bit on what you mean by p2p.

    If you mean it as anyone can run their own server - this is already possible. But since message inboxes are one way you can really only control how the server for the messages your are receiving. The messages you send go to wherever the destination says they should go.

    If by P2P you mean fully decentralized with no distinction between clients and servers then the discussion is a bit longer, but right now no, and for practical reasons probably not. Let me elaborate a bit.

    First the protocol assumes a client, that is your messaging app, delivers the message to a server which is identified by a hostname/ip (you ability to deliver depends on this server being up and working).

    For practical reasons the server is a separate entity, just like in email delivery protocols, because

    1. it needs a stable hostname or ip address
    2. it needs to be reachable most of the time to maximize availability, otherwise messages are not delivered

    Now, in practice nothing prevents your client and server from being the same machine, but if the previous two points are not true you will have a bad experience receiving your messages. Specially since most clients are on mobile phones, these two points will likely not be true.

    Another thing we could do to get it to be fully distributed would be to run simplex on top of other p2p protocol - anything w/ a DHT that can expose ports to the Internet (Tor, GNUNet, etc). But this has one downside - the client app would need to recognize new types of inbox addresses and connect accordingly.

    You could probably achieve this with Tor and some .onion host setup. But then anyone that wanted to deliver to you would need an equivalent setup.

    Apologies, I tend to nerd on about distributed systems.

    • N0x0n@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      8 months ago

      You souldn’t apologie. We should thank you for nerding and give to those interested, valuable information !