Skip to content
This repository has been archived by the owner on Feb 3, 2019. It is now read-only.

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

Open
gtrias opened this issue Apr 16, 2016 · 4 comments
Open

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

gtrias opened this issue Apr 16, 2016 · 4 comments
Labels

Comments

@gtrias
Copy link

gtrias commented Apr 16, 2016

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
Copy link
Author

gtrias commented Apr 16, 2016

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
Copy link
Owner

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
Copy link
Author

gtrias commented Jun 15, 2016

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
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants