dessalines / torrenttunes-client

DEPRECATED: A BitTorrent-based music streaming service.
GNU General Public License v3.0
358 stars 47 forks source link

Is there a way to run propertly on a server instead of localhost? #94

Open gtrias opened 8 years ago

gtrias commented 8 years ago

I'm trying to make a docker image of torrenttunes-client but I'm facing problems running from other computer than localhost.

It doesn't play any song from my server pointing to its ip with port. It says TorrentTunes is not running but it is. If I do a ssh forwarding to "fake" system as it would be installed on localhost and open from localhost:4568 it works fine.

What is the correct way to run on a external server?

gtrias commented 8 years ago

The exact error is: TorrentTunes hasn't been started yet.... Other thing I faced is that if I close the browser windows TorrenTunes closes, is that normal? could be forced to always running?

dessalines commented 8 years ago

I have a web client at http://torrenttunes.ml, the code for it being at https://github.com/tchoulihan/torrenttunes-server. Overall though, I'd need to figure out your use case, because the server is mainly to act as a search engine for the songs that everyone has shared, while the client is meant to be a way to share and play the songs you have on your own machine.

The reason you are getting that error message, is because torrenttunes-client is making AJAX calls to localhost.

gtrias commented 8 years ago

Well, my use case is to have a torrenttunes running in my mini-server at home, sharing all my music. And be able to play the collection from work without having to install anything, just opening web browser pointing to my server's torrenttunes. Maybe having torrenttunes-client configurable backend endpoint to point to somewhere different than localhost would allow me to fix this weird behavior.

You can see the torrenttunes docker project here: https://github.com/gtrias/torrenttunes-docker

dessalines commented 8 years ago

Well, my use case is to have a torrenttunes running in my mini-server at home, sharing all my music. And be able to play the collection from work without having to install anything, just opening web browser pointing to my server's torrenttunes.

There are two different clients, one is the java app/command line client, and the other is the site. Is there any reason why you can't install the java app at work, or just go to the website? Your mini-server at home will be seeding those songs, both to the server, and to any potential apps.

What I also do when I'm at work, is just go to the site, and just download the zips with torrents of the discographies and albums onto my phone, torrent them with an android torrent program that can watch folders with .torrent files like flud, and then use my phone as my main music driver.

I might be able to add a command-line tag to point to a custom url so that the AJAX calls could be made to some place other than localhost, but it seems a lot worse than just running the app locally.