Alam
Alam

Reputation: 1596

Is XMPP peer to peer connection without server possible?

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

Upvotes: 9

Views: 7824

Answers (2)

Alam
Alam

Reputation: 1596

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

Upvotes: 1

Joe Hildebrand
Joe Hildebrand

Reputation: 10414

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.

Upvotes: 11

Related Questions