This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes How to write a P2P file sharing application in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "How to write a P2P file sharing application in Java" Watch "How to write a P2P file sharing application in Java" New topic
Author

How to write a P2P file sharing application in Java

Mahtab Alam
Ranch Hand

Joined: Mar 28, 2012
Posts: 222

I want to write a P2P file sharing application using Java.

Everywhere I see , Server and ServerSocket classes . So one will behave as a Server and another one as Client .

But I want to write an application where actually there is no server. Each is a pear client.

Or I have to implement the design using one Server and one Client approach .

Its a P2P file sharing application.


Oracle Java Programmer , Oracle SQL Expert
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
I'm not sure you can get away entirely without some central resource, at least for registering, even if the later interactions are pure P2P. Something like Apache River may be as close as you can get.


Ping & DNS - my free Android networking tools app
 
jQuery in Action, 2nd edition
 
subject: How to write a P2P file sharing application in Java
 
Similar Threads
P2P Basics
Re: P2P Java Application
distributed vs central systems
P2P Programming in Java - need assistance
Broadcasting presence on a network