This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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: 278

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 , Oracle Java Web Component Developer
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42053
    
  64
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
 
GeeCON Prague 2014
 
subject: How to write a P2P file sharing application in Java