简体   繁体   中英

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

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 (eg Bonjour ), then connect directly when you want to chat. Apple's iChat implements essentially this approach for its peer-to-peer mode.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM