9

I am using libjingle for my XMPP connection. Can I connect two XMPP clients without having server in between. If yes how can I do that if no then why it is not possible?

XMPP client1 <---------Direct Audio/Video/IM----------> XMPP client2

Alam
  • 1,536
  • 15
  • 26

2 Answers2

11

You may not be able to do this directly with libjingle, but a protocol specification exists in the form of XEP-0174. The gist is that you publish your presence and connection information over Multicast DNS (e.g. Bonjour), then connect directly when you want to chat. Apple's iChat implements essentially this approach for its peer-to-peer mode.

Joe Hildebrand
  • 10,354
  • 2
  • 38
  • 48
1

WebRTC is perfect example for having peer to peer connection. The answer I was looking for two years ago.

Alam
  • 1,536
  • 15
  • 26
  • 1
    But WebRTC is not XMPP. Could you elaborate how this answers the question? – Flow Nov 03 '14 at 21:52
  • When the question was asked I was looking for peer to peer video conferencing solution. Libjingle was recently open source that time. I thought there may be some extension (or can be written) which can provide peer to peer connectivity. – Alam Nov 03 '14 at 22:21
  • 1
    That's fine, but the answer doesn't match the question now. People come here looking for an answer to XMPP P2P, not for P2P video conferencing. – Flow Nov 03 '14 at 22:34
  • WebRTC requires a server. Not for stream itself, but to initiate the connection. – Josef Kufner Jan 27 '15 at 10:08