Is an XMPP peer-to-peer connection possible without a server connection?

I am using libjingle for my XMPP connection. Can I connect two XMPP clients without having a server between them. If so, how can I do this, if not, why is this not possible?

XMPP client1 <--------- Direct audio / video / IM ----------> XMPP client2

+4
source share
2 answers

You may not be able to do this directly with libjingle, but the protocol specification exists in the form of XEP-0174 . The bottom line is that you publish your presence and connection information through multicast DNS (e.g. Bonjour ), and then connect directly when you want to communicate. Apple iChat mainly implements this approach for its peer-to-peer mode.

+8
source

WebRTC is a great example for connecting to a peer-to-peer network. The answer I was looking for two years ago.

+1
source

Source: https://habr.com/ru/post/1347689/


All Articles