about P2P

hi all:
I setup a Ejabberd server, and develop a xmpp client with libjingle, now, I want to establish a P2P connection to transfer file between two users, and I don't want to use socks5 proxy server that describe at XEP0065. I know jingle protocol can estable an P2P connection without proxy server, but after test, I found it seems that ejabberd not support jingle protocol.
so can you give me a solution?
thank you!

Is needed server support for P2P?

If your application will be P2P (peer to peer: client to client), then ejabberd doesn't need to implement any part of the Jingle protocol, right?

ejabberd allows the clients to send to other clients anything they want.

about P2P

badlop wrote:

If your application will be P2P (peer to peer: client to client), then ejabberd doesn't need to implement any part of the Jingle protocol, right?

ejabberd allows the clients to send to other clients anything they want.
thank you for you reply

thanks

thank for your help, now, the problem is ok now, I use iq send xml stanza to create a session, and everything is ok now.
thanks

about P2P

yes, you are right, but once I send jingle stanza, the server will disconnect my client. I don't know why.
if I want to create P2P connection, the server need do one thing, that is tell me my IP Address allocated by ISP, and PORT of NAT

Maybe badformed XML

Maybe the XML was not correctly formatted. You can try sending some small and simple stanzas of Jingle or any other random XMLNS to check if ejabberd kicks you or not.

Syndicate content