Meaningless Drivel is fun!*
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: 298

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: 42599
    
  65
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to write a P2P file sharing application in Java