• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Making a P2P server

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello guys,

The subject isn't too clear as I don't know how to describe this without going into detail. What I'm trying to do is a software that acts as a P2P server, that when started creates a webpage in the external IP of the given device with some info, info about shared files... And from the given website, how can you set up a root folder or a concrete folder to the given files such as "http://127.0.0.1:1234/test.txt" or "http://127.0.0.1:1234/shared/test.txt"?

Do you know any third party libraries or core ones that are useful for such a task?

Sorry if this question has been covered before but I haven't found any info about it and I'm just starting in P2P-oriented development.
 
Saloon Keeper
Posts: 7582
176
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That sounds more like client/server than P2P, unless I'm missing something.

For Java P2P stuff check out the Apache River project.
 
Ed Herrero
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thinking about it a little bit more yes, it is more client/server than P2P, but they won't share their bandwidth among them to download a file in this case, it is just important the bandwidth of the host, sorry for that.

I'm not that lost in that matter... how could I implement a webapp / homepage in the external's IP of the user + a shared folder or directory which contains the files? Any project or libaries for that or should I just create like a mini-JEE project within the server app?

PS: Thanks a lot for the Apache River project info, didn't know about it, will learn a little more about it.
 
Tim Moores
Saloon Keeper
Posts: 7582
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do I understand correctly that you wish to start servers on the other clients' machines? That does indeed sound like P2P, but would need to be done by the clients; it's not something you could do.
 
Ed Herrero
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, not that I do it from my main server so I manipulate their machines and run a server on them, but more like they download a developed software that starts a server with a given funcionality, something like SHOUTcast does.
 
Tongue wrestling. It's not what you think. And here, take this tiny ad. You'll need it.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic