Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
roymanish1982 #1
Member since Mar 2011 · 20 posts
Group memberships: Members
Show profile · Link to this post
Subject: Sending Socket Information from Server to Clients for P2P Communication
Dear Alex,

is it possible to send the socket information form server to client so that one client can communicate with the Active client with using server.

i have a collection of Active Socket maintained with the server with JID . so far i am able to communicate with two client using XMPP standard . Now i want to do a P2P communication with the Active Clients. If i send the Active Socket form the Server to the Respective client to whom i want to communicate .

Can u please suggest me some options / views.

Thanks
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
thats impossible. If you want P2P communication then you have to create new sockets between the 2 P2P clients directly.
Avatar
roymanish1982 #3
Member since Mar 2011 · 20 posts
Group memberships: Members
Show profile · Link to this post
Dear Alex ,

Thanks a ton for ur Kind Suggestion. I did that approach and able to connect to one client to Other using Socket.

I am able to achive the communication with in LAN connection but unable to do the same when one of my client is in Private Network and other is in Public Network , might be some routinh issue.

Can u please provide me ur suggestion \ guidance related to this.


Thanks
Manish Roy
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
when machine are behind routers or firewalls its hard to establish a p2p socket. You have to use technologies like STUN, TURN and ICE then like SIP and Jingle does. But most of these work only with UDP, not TCP/IP.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS