• Post Reply Bookmark Topic Watch Topic
  • New Topic

peer to peer commnication

 
Rahul Agarwal
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I am developing an Instant Messenger in Java.I am using sockets for it .I can easily send messages and recieve them.The problem comes when there is a proxy in between .How can I initiate a socket connection from a person outside to a person sitting behind the proxy.
How will it work...
If it's not possible how other messengers(like yahoo,msn,icq are working).
If someone can explain this or give me a link to some existing application like this one, it will be an immense help to me.
Thanx in advance...
Rahul
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
Many existing clients get through firewalls by using a standard protocol like HTTP. In that case, they often just have to change the port to make the connection through from the standard port (80) to an open port.
This is (for instance) how Gnutella and its clones work. In fact, taking a look at one or more of the Gnutella clones might give you some good ideas.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
Rahul Agarwal
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think u haven't got the point.
I want a person sitting outside the proxy to open a connection to a person sitting inside.How can a person sitting outside can identify a machine behind it.He cannot even distinguish between two machines behind the proxy.Tell me if I am wrong...
 
Van Glass
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Have you looked at the JXTA spec on Sun? This may address some of the P2P issues you are encountering.
------------------
JScape - Java Network Components www.jscape.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!