getmusicbee.com

General => MusicBee Wishlist => Topic started by: bugmenot on July 30, 2010, 12:06:18 PM

Title: Subsonic Client
Post by: bugmenot on July 30, 2010, 12:06:18 PM
Should be possible to integrate client to handle with Subsonic ?
There is some docs.
http://subsonic.org/pages/api.jsp
Title: Re: Subsonic Client
Post by: john6555 on May 20, 2011, 04:53:36 PM
This would be an amazing feature!
Title: Re: Subsonic Client
Post by: Maleko12 on May 21, 2011, 06:49:19 AM
+1 on this feature! SubSonic is amazing and it would be a great thing to have.
Title: Re: Subsonic Client
Post by: VX on May 21, 2011, 08:33:27 AM
The service is free, multi-platform and open source, so it's worth supporting.

+1
Title: Re: Subsonic Client
Post by: thegreyspot on May 21, 2011, 05:34:11 PM
OMG this would make me very happy
Title: Re: Subsonic Client
Post by: phred on May 21, 2011, 09:39:19 PM
+1
I just recently switched from VibeStreamer to Subsonic and it's quite a difference.  I too, would love to see this implemented.
Title: Re: Subsonic Client
Post by: Steven on May 21, 2011, 09:45:24 PM
if i understand the service correctly (only briefly looked at it), you can store you library on their server and then stream the file from anywhere (sounds to me like the new google music service in beta)
So i can understand it serves as a backup to your library and you can also stream to your phone.
But why would you want to use it from your PC? Surely its going to be an inferior experience than playing your files locally. Or have i missed something?
Title: Re: Subsonic Client
Post by: boroda on May 22, 2011, 09:11:05 AM
if i understand the service correctly (only briefly looked at it), you can store you library on their server and then stream the file from anywhere (sounds to me like the new google music service in beta)
So i can understand it serves as a backup to your library and you can also stream to your phone.
No, Steven. Subsonic is media server installed on your PC which have own url and may be accessible from Internet (like ms windows media server). It can stream music to mobile devices and to other PCs. As far as remember you was planning to implement the same functionality in MB, but gave up it. Now it can be done via plugin.
Title: Re: Subsonic Client
Post by: phred on May 22, 2011, 05:12:14 PM
Correct.  It installs on a local PC and streams from there.  I have it set up in my house and I can listen to my entire music collection when I'm at work by logging into my PC that's hosting Subsonic at home. 

And I shutter whenever there is talk about apps living on 'the cloud.'  Witness Amazon's (or was it Google's) recent disaster with their cloud services.  Their customers were out of business for three days.  The company I work for switched to cloud-based apps a few months ago and not only is everything running slower than before (even though they upgraded their internet connection) but we lose connectivity with the cloud three, four, five times a day and the outage lasts anywhere from a few minutes to a few hours.  Talk about killing productivity in the office. 

Oops ... sorry ... didn't mean to rant.
Title: Re: Subsonic Client
Post by: thegreyspot on May 22, 2011, 05:43:02 PM
Ya what they are sayin ^


I love having all my songs at work, but although subsonic has a nice interface, it would be so nice to be able to use good ol musicbee.

Suggestion, maybe like how we have "inbox, music library, audiobooks" you could add subsonic library.
Title: Re: Subsonic Client
Post by: greenday1987 on May 23, 2011, 10:15:59 PM
This might be a better way of listening to my music from the laptop around the house (inside the LAN) but away from the PC
+1 from me
Title: Re: Subsonic Client
Post by: Steven on May 26, 2011, 10:50:59 PM
i'm still not seeing a huge benefit MB can add to this but here is what i propose:

When this functionality is enabled (via a new MB plugin) the subsonic server would appear as a device (in the same way as a USB device) with the following nodes:
- music library node (which would be an aggregate of all the folders on the server)
- podcasts node
- playlists
- folder structure

so you could use MB search functionality, auto-playlists, auto-dj, play/ queue tracks etc
I cant see any way via their API to upload tracks to the server, so you wouldnt be able to sync from your PC to the server using MB
also I cant see any reason to utilise their functionality to play tracks on the server (all playback would be achieved by streaming the track to the PC you are running MB on)

Title: Re: Subsonic Client
Post by: john6555 on May 27, 2011, 04:11:32 AM
Steven, just what you proposed sounds dynamite.

I think it's not that MB would bring a lot of new functionality to Subsonic, but just the ability to display the SS library and playback within MB would be a huge win for anyone that uses SS. Personally I have a lot of music stored on a home server but like to keep my laptop pretty thin, so that's where SS comes in. Of course you can load up the SS interface via browser, but the interface is a tad clunky. Integrating the service into everyone's favorite music 'listening room' (MB) would just be really handy and an overall better experience.
Title: Re: Subsonic Client
Post by: Brambb on May 27, 2011, 10:15:10 AM
Agree with john6555, that functionality would be enough already.
+1
Title: Re: Subsonic Client
Post by: Steven on May 29, 2011, 06:29:18 PM
One question for people already using Subsonic. When you play a file, does it download it to the device you are on first and then play it locally through your default player? When i play a song through the web interface it downloads the file but i am not sure if it always does that.
How fast do files download for you?

The API supports streaming but its very basic, so to do seeking i would have to restart the stream and read to the new location so there would be a delay doing that. If i download the file first then that issue goes away, but then the downside is there is a delay on the first song (following songs you shouldnt notice the delay though)

edit:
i can see you can play the files with a flashplayer and seeking is instant for me but because the API provided doesnt allow a start position to be specified what i said above still applies

Title: Re: Subsonic Client
Post by: greenday1987 on May 29, 2011, 06:47:09 PM
Yeah, I've always used the flash player via Firefox and there's no delay issues on my end.
Title: Re: Subsonic Client
Post by: Steven on May 29, 2011, 07:09:49 PM
if you download a medium size track eg. around 6MB, how long does it take from a different PC to the subsonic server? (you can download files from the sub-sonic web interface)
Because the subsonic api doesnt provide any flexibility with streaming, i either download the entire file first and play it locally (which means the first song will have a delay starting, following songs will be instant) or i use the streaming API which means playback will start straight away but seeking will be slow
Title: Re: Subsonic Client
Post by: greenday1987 on May 30, 2011, 07:22:41 AM
The latter option sounds better to me. Seeking isn't too important to me
Title: Re: Subsonic Client
Post by: phred on May 30, 2011, 06:12:45 PM
I agree with greenday - starting the playback immediately is my preference.
Title: Re: Subsonic Client
Post by: Guegs on May 30, 2011, 07:53:24 PM
Option 2 for me. I love subsonic, this would be an AMAZING feature.
Title: Re: Subsonic Client
Post by: Steven on May 31, 2011, 10:55:45 PM
i've got this pretty much done now but i am having a problem with playback of .m4a files - does anyone have Subsonic working with .m4a files?
edit: scrub that - got it working. I'll post a link tomorrow night
Title: Re: Subsonic Client
Post by: greenday1987 on June 01, 2011, 12:56:25 AM
That's massively epic :)
Title: Re: Subsonic Client
Post by: john6555 on June 01, 2011, 07:19:32 AM
On the Subsonic Android client, songs are downloaded/cached in the background and I've gotten used to it. On mobile I suppose it especially makes sense because of potential intermittent connectivity which could affect streaming. However the track is only buffered (downloaded partially) in the background before playback begins, and will continue to download the rest of the track and the next tracks as well. I don't mind waiting the 15 seconds or so (often less for me) for the first song to buffer, but then again I don't use seeking much either.

The standard web client has a few options for players, pictured below. The Web Player (Flash based) is the main one and this allows seek although I suspect Flash may be caching the file locally to disk? Playback does begin instantly though.

(http://k.min.us/jhjzM.png)

Really excited for this integration! I'm not sure if there is an API for the jukebox player but this could be really sweet to implement too.
Title: Re: Subsonic Client
Post by: Steven on June 01, 2011, 07:29:18 AM
i've taken the approach of downloading a small part of song and then starting playback while it continues to download. It might need tweaking depending on how it performs on less powerful machines.
john6555, how long does it take to download tracks running it from your laptop?
Title: Re: Subsonic Client
Post by: thegreyspot on June 01, 2011, 02:15:53 PM
i've taken the approach of downloading a small part of song and then starting playback while it continues to download. It might need tweaking depending on how it performs on less powerful machines.
On the web interface it seems to do this aswell. But when is song is about to end, im pretty sure it prepares the next one :/

Can't wait to see this!
Title: Re: Subsonic Client
Post by: john6555 on June 01, 2011, 03:40:43 PM
i've taken the approach of downloading a small part of song and then starting playback while it continues to download. It might need tweaking depending on how it performs on less powerful machines.
john6555, how long does it take to download tracks running it from your laptop?
Right now I'm on a tethered Sprint 4G connection and it took about 1 minute to completely download 6MB song (at roughly 70kbps). When I have a solid WiFi connection it's much quicker obviously. My Subsonic server at home is on a pretty fast connection (around 20MB download, 3MB upload) so it's never really an issue.
Title: Re: Subsonic Client
Post by: Steven on June 01, 2011, 06:20:09 PM
updated .exe to support the extended plugin API (unzip and copy/overwrite where MusicBee.exe is installed)
http://www.mediafire.com/?5qduiiwh384bj7m

subsonic plugin (MB_SubSonic.dll)
http://www.mediafire.com/?3e2v3ibig53mj03

**** its my understanding you need to have made a donation to Subsonic and registered Subsonic to allow the Subsonic API MusicBee uses to work after 30 days of using Subsonic ****

- if you dont have a Plugins sub-folder where MB is installed create one
- copy MB_SubSonic.dll to the Plugins sub-folder
- you should end up with something like: c:\program files\MusicBee\Plugins\MB_SubSonic.dll
- restart MB, and in the Plugin preferences enable Subsonic
  - host is your server name without the http:// at the start
  - port is the server port
  - path is normally the default "\" but it is possible to configure subsonic to be something else so you need to enter the same
  - username
  - password
  - transcode stream - only tick if you need to reduce the size of the file streamed from the server because the connection is slow
- on clicking Apply, MB will validate the settings - any errors are those as returned by Subsonic and I probably wont be able to help so you might need to visit the Subsonic forum for help

If no error is reported on setup, a Subsonic drive will appear in the computer section. Clicking the parent node will show the entire library, but you can also view playlists and folders

You can reference the subsonic drive from Auto-Playlists, the Auto-DJ or create manual playlists (but in all cases these reside in your MusicBee library, not on the Subsonic server). If you add files to your local MusicBee library, MB will keep track of playcounts and enable ratings to be stored (but only in the local MusicBee library cache, not on the server).

In the main panel, MusicBee will only show the tags that Subsonic makes available which is the basic ones you need (Artist, Title, Album, Track#, Year, Genre and Duration). Unfortunately it doesnt include Album Artist.

Title: Re: Subsonic Client
Post by: thegreyspot on June 01, 2011, 06:40:39 PM
Hey thanks steven,

I was able to connect to my ss server and it listed the folders but when i click on a folder it just says "loading" in the main panel. Do you need a test server?
Title: Re: Subsonic Client
Post by: Steven on June 01, 2011, 06:44:42 PM
the first time it might take ages to load depending how big the library is/ fast your connection is. Unfortunately the Subsonic API is not good for efficient retrieval of the full library. The files will be cached after that so it should be fast the next time.
If you expand the subsonic node and can see playlists (if any) and folders then it is working ok
Title: Re: Subsonic Client
Post by: thegreyspot on June 01, 2011, 07:05:54 PM
yep you are right. took a long time. I have a large collection.
Title: Re: Subsonic Client
Post by: Steven on June 01, 2011, 07:56:23 PM
i will be interested to get anyones feedback about how playing tracks is working out, particularily on a low powered computer or slow connection
Title: Re: Subsonic Client
Post by: boroda on June 01, 2011, 08:29:33 PM
It seems most tags are not retrieved from server, for example 'iTunes compilation'.
Title: Re: Subsonic Client
Post by: Steven on June 01, 2011, 08:37:17 PM
It seems most tags are not retrieved from server, for example 'iTunes compilation'.
i've covered that in the notes i wrote - only basic tags are supported by Subsonic

Also i updated the musicbee.exe link as there was an unrelated introduced bug with creation of playlists
Title: Re: Subsonic Client
Post by: john6555 on June 01, 2011, 10:47:51 PM
I almost posted that I couldn't see the Subsonic drive, before I realized that I am using filtered folders and the drive was just hidden. Anyone else using filtered folders, make sure you add the Subsonic drive to your list.

The library has been loading for the past 40 minutes or so and still nothing is displayed in the folders. Just thinking out loud here, but I have many GBs of videos in my SS library alongside the music (SS supports streaming video playback too) - could that be an issue?

EDIT: Added below info

I have my SS library split into 3 folders: Music, Videos, and Downloads. I was hoping to troubleshoot my above "theory" so I tried to change the plugin settings so the library was looking just at /Music (also tried Music, /Music/, and Music/) but I keep getting unknown error popup.
Title: Re: Subsonic Client
Post by: Steven on June 01, 2011, 10:58:47 PM
its as i said before with thegreyspot, the subsonic API is not suited to retrieving a large number of files and will be very slow the first time (although 40 mins is awful). Afterwards MB caches the files so will be a lot faster once the cache is completed.
Video files are ignored. I have contacted the developer but suspect it will be some time before he even considers my request to improve the API.
But could you confirm you are doing this over an internet connection and not your home setup?

I thought having the entire library accessible in the main panel would be a plus, but if its going to take an hour for people to initially load the library the first time then perhaps its not a good idea, and i just restrict it to folder access only.

MB loads all folders - there is no current support for restricting the folders retrieved.
Title: Re: Subsonic Client
Post by: john6555 on June 01, 2011, 11:04:19 PM
Yeah, i saw the back and forth with thegreyspot i was just thinking at 40 minutes (now over an hour) there might be something wrong. My library is about 50GB, not sure how big that is relative to others. I'm still on a Sprint 4G connection which isn't very quick, so I'll check it on a faster connection and report back.
Title: Re: Subsonic Client
Post by: phred on June 02, 2011, 01:56:28 AM
I've got about 36 gigs in my library (about 5900 tracks) and it took about five minutes to do the first-time load.  Understand that this is on what I'd call my "inside" network.  IOW, MB is on one machine within my network, Subsonic is on another, and all the tracks are on a NAS.  I guess a good test will be from outside, which I will do within the next few days.  It's terribly busy at work right now and it wouldn't be cool is the bosses walked by and saw me configuring MusicBee. 

Nice job, Steven.   Thanks.
Title: Re: Subsonic Client
Post by: john6555 on June 02, 2011, 03:54:31 AM
It has been loading for hours now but still nothing (just the folder structure). Disabled and re-enabled, deleted subsonicSettings.dat and started over, changed server name to IP address, still nothing. FYI I'm on a fast 20MB download line now. Help!
Title: Re: Subsonic Client
Post by: Steven on June 02, 2011, 07:59:31 AM
what i plan to do is change it so when you drill down on folders, it will query the subsonic server directly for the files in that folder only rather than waiting for the entire cache to load. It will mean that "Include files in sub-folders" setting will be ignored.
john6555, i dont know why it wouldnt be loading after that amount of time but if i do the above you will at least be see the files straight away
Title: Re: Subsonic Client
Post by: Steven on June 02, 2011, 12:29:19 PM
john6555, if you know the IP address of your home server (run IPCONFIG from the command prompt on the machine) and enter that as the hostname rather than the friendly subsonic name it should load a lot faster in your home environment
Title: Re: Subsonic Client
Post by: john6555 on June 02, 2011, 02:00:09 PM
john6555, if you know the IP address of your home server (run IPCONFIG from the command prompt on the machine) and enter that as the hostname rather than the friendly subsonic name it should load a lot faster in your home environment
yep already tried it, no luck. the problem for me isn't how long it takes to load, it's that it never loads. even when the "Loading..." goes away no music is displayed in any of the folders.
Title: Re: Subsonic Client
Post by: greenday1987 on June 02, 2011, 04:22:19 PM
I'm gonna try this out hopefully tomorrow. I don't have any money atm to donate to subsonic to re-activate my account. I didn't even realise it was a trial period until I reinstalled it today :/
Title: Re: Subsonic Client
Post by: Steven on June 02, 2011, 07:21:46 PM
i've made the following changes:
- MB substitutes the subsonic friendly name with the ip address of your server - this should improve performance in home networks (i'm doubtful it would help much when accessed from an external location)
- MB is now a bit more intelligent about when and how it refreshes the cache. However the initial cache load for first time users will still be slow
- viewing files in folders now no longer requires the cache to be loaded
- john6555, if you are using an old version of subsonic its possible this version might resolve your issue. Otherwise i sent you a PM


updated .exe:
http://www.mediafire.com/?7c3s94476b4h4qx

updated plugin:
http://www.mediafire.com/?aqvm1zmddnmn6ca
Title: Re: Subsonic Client
Post by: phred on June 02, 2011, 11:14:01 PM
For the record, and using the first iteration of the dll ... from outside my home network it took six minutes to load the aforementioned 36 gigs.

FWIW, when I set this up last night at home, I used the ip address of the subsonic server, not the name.

And for greenday and others, best as I can tell Subsonic server is free for use.  Yes, there is a 'donate' button on the server UI, but there are no ads nor is it crippled in any way.  If one wants to use the Andriod or other mobile versions of Subsonic then the donation is required after a 30 day trial.
Title: Re: Subsonic Client
Post by: john6555 on June 02, 2011, 11:21:09 PM
it's working now! i'm not sure if it was the new version, rebooting my home router, the Subsonic service, and the server itself, or maybe a combination of all of the above... anyhow this looks really great so far. i'm on a fairly poor connection and it took about 6 seconds to buffer a 4min song, wow!

while some music is playing fine, a couple albums so far (seems that it's the entire album) are giving me an error. they play fine through the web interface so i'm not sure why they are causing errors in MB. Here's an example (this album is MP3 320kbps):

(http://k.min.us/ihwtG.png)
Title: Re: Subsonic Client
Post by: john6555 on June 03, 2011, 02:13:57 AM
and just as mysteriously as the error happened, it has now disappeared! i am on the same network as the server now, if that would make any difference. great work on this steven!
Title: Re: Subsonic Client
Post by: Steven on June 03, 2011, 07:12:55 AM
its possible it might need to buffer some more before it starts playback. I guess if it keeps happening let me know
Title: Re: Subsonic Client
Post by: Guegs on June 03, 2011, 03:31:27 PM
Thanks! It took about 2 seconds to load my 500GB library that is stored in a different country! :D

EDIT

**** its my understanding you need to have made a donation to Subsonic and registered Subsonic to allow the Subsonic API MusicBee uses to work after 30 days of using Subsonic ****
It is an open source program, so this isn't difficult to change. If that is too difficult that and in your registration key is just an md5 of any email.

Feel free to delete the post, but it seems silly to make an open source program require a 'donation' to continue services. If I want to donate to you, I will. Don't limit features until I do donate.
Title: Re: Subsonic Client
Post by: Maleko12 on June 03, 2011, 03:52:04 PM
I keep getting an "Error: Unable to connect to remote server" every time I put in all of the correct information in the plugin. However, I can connect to Subsonic in the browser and on my Android phone.
Title: Re: Subsonic Client
Post by: Guegs on June 03, 2011, 03:55:03 PM
I keep getting an "Error: Unable to connect to remote server" every time I put in all of the correct information in the plugin. However, I can connect to Subsonic in the browser and on my Android phone.
Are you entering http:// before in the host? If you are, don't.
Title: Re: Subsonic Client
Post by: Maleko12 on June 03, 2011, 04:03:59 PM
No, I'm not putting the http:// before the host. Oddly enough though, I get the same error if I put the http:// before the host as well.
Title: Re: Subsonic Client
Post by: Steven on June 03, 2011, 08:17:06 PM
perhaps try entering the IP address number (to find out what it is, DOS command prompt then IPCONFIG)
MB automatically strips out the http:// anyway
Title: Re: Subsonic Client
Post by: thegreyspot on June 03, 2011, 10:23:21 PM
- MB substitutes the subsonic friendly name with the ip address of your server - this should improve performance in home networks (i'm doubtful it would help much when accessed from an external location)


I just worry that mostly subsonic servers are on a home network that have changing IP addresses. Will it refresh the ip address often?
Title: Re: Subsonic Client
Post by: Steven on June 03, 2011, 10:33:01 PM
yes - every time MB is restarted
Title: Re: Subsonic Client
Post by: Maleko12 on June 03, 2011, 11:33:46 PM
Tried both methods (ip address and subsonic friendly name), no dice :(
Title: Re: Subsonic Client
Post by: Sarge on June 04, 2011, 12:20:51 AM
Tried both methods (ip address and subsonic friendly name), no dice :(
I don't know if this is related or not, but I had a similar problem when I tried to use Vibestreamer...It turned out  my problem was with my Linksys router and I had to use port forwarding..to solve the IP issue

let me rephrase that and say it had to do with how the router was handling the IP
Title: Re: Subsonic Client
Post by: phred on June 04, 2011, 04:01:14 AM
Sarge brings up a great point.
If you're connecting to the Subsonic server from inside your own network then you don't need the port forwarding.  But if you're trying to come in from outside, then the port forwarding is necessary.  I can't speak for other makes of routers/firewalls, but the LinkSys boxes are quite easy to configure. 
Title: Re: Subsonic Client
Post by: Sarge on June 04, 2011, 05:06:10 AM
I recall that i was going thru a router within my own network, but I still had IP issues..I had to go to ..( i think it was no-ip.com ) but i'm not sure this was awhile ago
Title: Re: Subsonic Client
Post by: Steven on June 04, 2011, 07:46:37 AM
double click on the subsonic icon in the system tray and click the settings tab.
if 'enable https:' is ticked let me know
you also need to make sure 'context path' is the same as the path setting in the plugin preferences
Title: Re: Subsonic Client
Post by: Maleko12 on June 04, 2011, 08:00:48 AM
Sarge brings up a great point.
If you're connecting to the Subsonic server from inside your own network then you don't need the port forwarding.  But if you're trying to come in from outside, then the port forwarding is necessary.  I can't speak for other makes of routers/firewalls, but the LinkSys boxes are quite easy to configure. 

I'm just using the modem that my house uses (my location doesn't have a wireless router).

double click on the subsonic icon in the system tray and click the settings tab.
if 'enable https:' is ticked let me know
you also need to make sure 'context path' is the same as the path setting in the plugin preferences


I don't have the "enable https:" option... enabled. And the context path is the same as the plugin preferences. Unfortunately nothing changes :(
Title: Re: Subsonic Client
Post by: Steven on June 04, 2011, 05:37:42 PM
hopefully someone with more experience of networking will be able to help.
The only thing i can suggest is to check if you have your firewall configured in such a way that refuses connection by MusicBee - maybe you need a rule to allow the IP address of the computer you are running MB on to pass through the firewall.
Perhaps you could try using PING on the IP address from the dos command prompt to see if it works that way
Title: Re: Subsonic Client
Post by: Sarge on June 04, 2011, 06:15:45 PM
Again this might not be entirely related with subsonic, but I had used Vibestreamer before..and I had to configure windows firewall with an exception, thru control panels.
This was with XP so i'm not sure same in win7
you can also check the box in firewall to throw off a alert as to if it's blocking it or not, which was helpful

I also use comodo firewall and had to set exceptions there also...they were configurable
Title: Re: Subsonic Client
Post by: Maleko12 on June 04, 2011, 07:29:29 PM
I use Windows Firewall, so I added Musicbee to the exceptions list... no new results I'm afraid. Maybe a debug version to see what's going on in MusicBee?
Title: Re: Subsonic Client
Post by: Sarge on June 04, 2011, 07:36:11 PM
I use Windows Firewall, so I added Musicbee to the exceptions list... no new results I'm afraid. Maybe a debug version to see what's going on in MusicBee?
After adding it, did you try a system reboot?
Title: Re: Subsonic Client
Post by: Sarge on June 04, 2011, 07:39:58 PM
Also what port is subsonic trying to use? it could be a port issue
Title: Re: Subsonic Client
Post by: Maleko12 on June 04, 2011, 08:00:28 PM
I haven't tried a system reboot, so I'll try that.
Title: Re: Subsonic Client
Post by: Steven on June 04, 2011, 08:14:34 PM
its the ip address of the machine MB resides on that you need to add to the incoming exceptions on the subsonic server machine.
i am guessing you are configuring the outgoing exceptions which isnt relevant in this case

Title: Re: Subsonic Client
Post by: Maleko12 on June 04, 2011, 09:27:36 PM
Did a system reboot, and nothing changed.  :'( :'(

I altered the inbound rules only, and Subsonic is already allowing my computer to use any local and remote address and any local and remote ports...

Title: Re: Subsonic Client
Post by: phred on June 05, 2011, 02:22:24 AM
Is the machine that Subsonic lives on, and the machine where MB is installed, on the same network?  I have to use two different IPs when connecting to Subsonic depending whether I'm in my house (where Subsonic lives) or outside.  I have static IPs assigned to the machines in my LAN.  To get from my machine to the Subsonic machine I use the IP of the Subsonic machine along with the port number I've assigned to it.  From work (or outside my home) I use the WAN IP (assigned by my ISP and even thought it's dynamic it hasn't changed in almost a year) along with the port.

Similar with MB.  From home MB points to the Subsonic machine's LAN IP.  From work it points to the WAN IP.  And if you have a router, you need to set port forwarding to forward the port you assigned to Subsonic to the LAN IP of the Subsonic machine.

If you're not already doing that, give it a try and let us know how you make out.  We're gonna get this going for you. 
Title: Re: Subsonic Client
Post by: Sarge on June 05, 2011, 06:15:20 AM
Did a system reboot, and nothing changed.  :'( :'(

I altered the inbound rules only, and Subsonic is already allowing my computer to use any local and remote address and any local and remote ports...
By any chance are you using mcafee anti virus ? or any anti virus that may be blocking your access ?
I know mcafee has a firewall also..just a thought
Title: Re: Subsonic Client
Post by: Maleko12 on June 05, 2011, 08:01:14 AM
This is why I love the MB community... I feel humbled. :-[ :-[

@phred: Yes, MB and SubSonic live on the same machine. I don't have a wireless connection however.
@Sarge: I don't have McAfee as an antivirus, but I do have MSE. That antivirus hasn't been blocking access to either SubSonic or MB [and anything MB uses for its online capabilities (last.fm, skype plugin, album auto-tagger, etc.)]. Very confusing.
Title: Re: Subsonic Client
Post by: Steven on June 05, 2011, 08:46:49 AM
did you run the PING command on the MB computer from the dos prompt?
PING ip-address-of-server
if it fails then your server machine is refusing connection which would point to the configuration of the firewall
Title: Re: Subsonic Client
Post by: phred on June 05, 2011, 01:58:30 PM
Wireless or not, the set-up should be the same, Maleko.  While I do have a Wireless Access Point in my LAN, it's only used for the two notebook computers in the house.  The other desktops are all fed via a wired router. 

Okay - MB and SS are on the same machine.  Here are some troubleshooting questions:
What is the IP address of that machine? 
How do you connect to the internet - is there a modem (cable, dsl, other) that goes straight from the wall to the network card in the computer, or is there a router between them?  If a router, are there any other computers on the same network?

It might be helpful to see your TCP/IP config.  Open a command prompt window and type IPCONFIG -ALL.  You're looking for the Ethernet Adapter section.  You can cut and paste it here and (for security) block out some of the digits on the IP address (and others) if you wish.  I'm most interested in seeing if DHCP Enabled is yes or no.  And the IP address. 




Title: Re: Subsonic Client
Post by: Sarge on June 05, 2011, 02:00:24 PM
This is why I love the MB community... I feel humbled. :-[ :-[

@phred: Yes, MB and SubSonic live on the same machine. I don't have a wireless connection however.
@Sarge: I don't have McAfee as an antivirus, but I do have MSE. That antivirus hasn't been blocking access to either SubSonic or MB [and anything MB uses for its online capabilities (last.fm, skype plugin, album auto-tagger, etc.)]. Very confusing.
See if either of these sites are helpful in any way.
http://www.whatismyip.com/

http://www.dyndns.com/

or try turning your firewall off...(just as a test) don't leave off
Title: Re: Subsonic Client
Post by: Sarge on June 05, 2011, 02:16:48 PM
OK I am CUI...(computing under the influence) but i'm also a bit confused as to how you are trying to connect.. you say you can connect with Android,,so let's assume the Server PC is set up ok.... and you say you don't have a router ? so how are you trying to remotely connect to the server ?   
Title: Re: Subsonic Client
Post by: Maleko12 on June 05, 2011, 06:47:22 PM

@phred: Here's the ipconfig /all information, I blocked some of the info:

Quote
   Host Name . . . . . . . . . . . . : [Blocked]
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Broadcast
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : mshome.net

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : mshome.net
   Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   Physical Address. . . . . . . . . : 00-22-15-A4-83-EA
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::192d:3777:1ce1:cd68%10(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.[Blocked].1.[Blocked](Preferred)
   Subnet Mask . . . . . . . . . . . : [Blocked].255.[Blocked].[Blocked]
   Lease Obtained. . . . . . . . . . : Sunday, June 05, 2011 10:14:27 AM
   Lease Expires . . . . . . . . . . : Monday, June 06, 2011 10:14:27 AM
   Default Gateway . . . . . . . . . : 192.[Blocked].1.[Blocked](Preferred)
   DHCP Server . . . . . . . . . . . : 192.[Blocked].1.[Blocked](Preferred)
   DHCPv6 IAID . . . . . . . . . . . : 234889749
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-D3-71-28-00-22-15-A4-83-EA

   DNS Servers . . . . . . . . . . . : [Blocked]
                                       [Blocked]
   NetBIOS over Tcpip. . . . . . . . : Enabled
   Connection-specific DNS Suffix Search List :
                                       mshome.net
@Steven: How do you do a PING info you're talking about?

@Sarge: I tried to turn the firewall off, and I also allowed inbound connections (it previously was being blocked)... still MB is giving me the same error. :( I'm just trying to connect to SubSonic from MB via my Motorola wired router. Strange, I can connect to SubSonic anywhere (another computer, my Android phone, my server PC's browser, etc.) but not MB itself.
Title: Re: Subsonic Client
Post by: phred on June 05, 2011, 07:16:47 PM
Thanks for the IPCONFIG info.  I'll get to that in a minute, but I just re-read the entire thread and need to think out loud here.  I'm trying to understand exactly what you're trying to do that's not working.  MB & SS are on the same machine.  You can connect to SS via the Android phone and via a web browser.  What you can't do is connect to SS from MB, correct?  

To PING your computer, open a Command Prompt and type PING 192.xxx.xxx.xxx where the IP address is the address of the machine where Subsonic is installed.  You'll get a response show four replies from the pinged machine.  If the reply shows bytes, time, and TTL then you can successfully reach that machine.  If the reply shows something like 'destination host unreachable' or 'can't find host' then your SS machine isn't reachable.  

Based on your IPCONFIG data, the IP address on the machine where you ran IPCONFIG (which I assume is the machine where MB & SS live) your IP address is automatically assigned.  And could change every few days.  Which could be a problem when trying to reach the machine from outside.  

I'm scratching my head and I keep coming back to the fact that both apps are on the same machine and you're trying to reach one via the other.  And I'm thinking that may be part of (if not the entire) problem.   If I get the energy, I'll do a quick install of MB on my machine which has SS on it and see if I can connect.

EDIT:
I didn't need much energy at all to install MB.  I just remoted (is that a word?) into that machine, and three minutes later MB was up and running.  In the Plugins preferences of MB I changed four things for Subsonic - host, port, username, and password.  Obviously username and password are those which you use to log in to Subsonic.  I set the port to the port SS is configured to use.  I then tried two different hosts and both worked.  First I used the IP address of the machine I had just installed MB on (and where Subsonic lives.)  Saved the config, went to the Computer tree of MB and within seconds all my tracks were showing.  Then I changed the host to localhost and again had no problem getting to the tracks via Subsonic.  So they definitely can live on the same machine.

Are you certain that the setting for the port you have configured in MB is the port SS is configured for?  No typo, perhaps?

I made a commitment to get this working for you and I'm about ready to start banging my head against the wall.  Or change my MB skin to Sarge's WTF and stare at it until I come up with a solution.
Title: Re: Subsonic Client
Post by: Sarge on June 05, 2011, 09:06:43 PM
where it says...IP routing enabled = no

can that be changed to a yes?  is that configurable?

I'd also check that link i sent..dyndns
also i'm not sure what model motorola you have but here is some info on port forwarding a motorola router

http://portforward.com/english/routers/port_forwarding/Motorola/WR850Gv6.1.4/default.htm
Title: Re: Subsonic Client
Post by: Sarge on June 05, 2011, 09:26:53 PM
go to here first and get your ip
http://www.whatismyip.com/
 then type your ip into the browser address bar
you should get a sign in box..if you have motorola it will be default

admin...and password is ..motorola
see if you can configure there
Title: Re: Subsonic Client
Post by: Maleko12 on June 05, 2011, 11:49:14 PM
OK... when I used the whatsmyip link, I get an IP address that starts with 76. When I put that into the address bar, nothing loads up. Also, when I put the 76.xxx.xx.xxx address in the "host" portion of the SS plugin, I get a "Error: Required parameter is missing." So, I decided to PING both the 192 address and the 76 address. Here are the results:

Quote
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

[Blocked]>ping 192.xxx.x.xxx

Pinging 192.xxx.x.xxx with 32 bytes of data:
Reply from 192.xxx.x.xxx: bytes=32 time<1ms TTL=255
Reply from 192.xxx.x.xxx: bytes=32 time<1ms TTL=255
Reply from192.xxx.x.xxx: bytes=32 time<1ms TTL=255
Reply from 192.xxx.x.xxx: bytes=32 time<1ms TTL=255

Ping statistics for 192.xxx.x.xxx:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

[Blocked]>ping 76.xxx.xx.xxx

Pinging 76.xxx.xx.xxx with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 76.xxx.xx.xxx:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

My port is the same on both, I triple-checked it! And yes, this is extremely frustrating.
Title: Re: Subsonic Client
Post by: phred on June 06, 2011, 12:02:01 AM
Believe it or not, the results you posted are progress!!!!

The 76.xxx address you got is the address for your machine on the WAN (Wide Area Network.)  This is the address that computers -outside- of your house would see.  (If you use Firefox you can get an extension that shows your 'outside' IP in the status bar - https://addons.mozilla.org/en-US/firefox/addon/showip/?id=590)  The 192.xxx is the IP address of your LAN (Local Area Network.)  This is the address -inside- your house.

You can't ping the WAN IP because you're on the other side of modem.  If you were to use a computer outside your house you would be able to ping it.  On my MB installation here at home, I use the 192.xxx address of the Subsonic machine.  On my MB installation at work, I use the -outside- IP (which in my case begins with 24.xxx.)  Both require the port, but the outside address would also require port forwarding to be set on the router IF THERE IS MORE THAN ONE COMPUTER ON YOUR HOME NETWORK.  If your modem feeds your router and your router feed more than one computer, forwarding the Subsonic port will point incoming traffic to the machine with Subsonic.  What make/model router are you using?
Title: Re: Subsonic Client
Post by: Maleko12 on June 06, 2011, 12:16:59 AM
YAY progress! To clarify though, there is only one computer in the network.

Make: Motorola
Model:  2210-02
Title: Re: Subsonic Client
Post by: phred on June 06, 2011, 01:15:22 AM
To clarify my last statement - the 76.xxx address is the IP address of your DSL -modem- and is what's seen by the outside world.  The 192.xxx IP address is the address of your computer.

Now for the problem - that Motorola you're using is a modem, not a router.  Modems do not have the ability to port forward.  You said you're using Windows Firewall.  Are you running XP or W7?  If 7, open Windows Firewall and go to Advanced Settings.  Select Inbound Rules and then New Rule.  Select Port and click Next.  Select TCP and Specific local ports.  Enter the Subsonic port in the local port field and click Next.  Select Allow the connection and click Next.  Check all three choices on the When does this rule apply screen and click Next.  Enter a name (and description if desired) and click Finish.  Reboot the computer and make sure Subsonic is started.  Then launch MB and let me know if it works.
Title: Re: Subsonic Client
Post by: Maleko12 on June 06, 2011, 01:24:25 AM
I'm using the pre-installed Windows Firewall. The OS is Windows 7.
Title: Re: Subsonic Client
Post by: phred on June 06, 2011, 01:27:22 AM
 I was editing my response while you were telling me your firewall.  I looked at previous posts and saw your firewall and gave you some suggestions.  Let me know how it goes.
Title: Re: Subsonic Client
Post by: Maleko12 on June 06, 2011, 01:42:08 AM
Just finished... still getting "the unable to connect to the remote server" error.  ??? ???
Title: Re: Subsonic Client
Post by: phred on June 06, 2011, 02:36:56 AM
Grrrr ... you're gonna make a liar out of me    >:(

This is getting very frustrating.  I'm out of ideas for tonight.  Perhaps I'll have some new thoughts tomorrow.
Title: Re: Subsonic Client
Post by: Maleko12 on June 06, 2011, 02:44:51 AM
I'm sorry for this extremely frustrating ordeal. Not sure at all why this isn't happening.
Title: Re: Subsonic Client
Post by: Sarge on June 06, 2011, 03:35:41 AM
I'm sorry for this extremely frustrating ordeal. Not sure at all why this isn't happening.

http://portforward.com/networking/static-win7.htm
Title: Re: Subsonic Client
Post by: Maleko12 on June 06, 2011, 03:54:24 AM
Just did the link above Sarge: No new changes I'm afraid... :( :( :(
Title: Re: Subsonic Client
Post by: Sarge on June 06, 2011, 04:03:14 AM
Just did the link above Sarge: No new changes I'm afraid... :( :( :(
Just a thought..did you ever try and use Vibestreamer ?
and see if you get the same issues?
http://www.vibestreamer.com

Title: Re: Subsonic Client
Post by: Sarge on June 06, 2011, 04:24:48 AM
my quess is that it's going to be your modem itself that is the problem..i would call the provider and see if there is a updated modem, and ask them .
Title: Re: Subsonic Client
Post by: Maleko12 on June 06, 2011, 04:27:06 AM
vibestreamer works perfectly fine (I can listen to music in the browser). I just find it weird that only the SS plugin doesn't work in MB, while everything else SS-related works just fine.
Title: Re: Subsonic Client
Post by: Sarge on June 06, 2011, 04:33:32 AM
well something works :)

i don't have win 7 nor do i use subsonic, so i'm limited in the help.

Title: Re: Subsonic Client
Post by: Sarge on June 06, 2011, 04:43:17 AM
Try using Subsonic with the WTF skin.

WTF do you have to lose ?  ha haha  just kidding
Title: Re: Subsonic Client
Post by: thegreyspot on June 06, 2011, 02:17:34 PM
Maleko12 IDk, but i would guess its just something typed into MB wrong. Why dont you take a picture of the address that you type into your browser that makes SS load, and take a picture of your MB SS preferences.

It cant be somethign wrong with ur "modem", if it loads fine in your browser. Only thing it could be is windows firewall blocking MB, which it seems you have checked. Or steven has some error in his code, which lets face it, is probably not likely ;)
Title: Re: Subsonic Client
Post by: Maleko12 on June 06, 2011, 04:59:31 PM
OK, here is a visual representation of what I'm doing:

1. Put all of my info, using my subsonic-friendly hostname:
(http://i399.photobucket.com/albums/pp80/MalekoKBrown/Info.png)

2. Get this error:
(http://i399.photobucket.com/albums/pp80/MalekoKBrown/Error.png)

3. Do the same as above, but instead use the 192.xxx.x.xxx address instead:
(http://i399.photobucket.com/albums/pp80/MalekoKBrown/IPinfo.png)

4. Get the same error as #2:
(http://i399.photobucket.com/albums/pp80/MalekoKBrown/Error.png)

Now, here are my settings in SubSonic:
(http://i399.photobucket.com/albums/pp80/MalekoKBrown/SubSonic1.png)

(http://i399.photobucket.com/albums/pp80/MalekoKBrown/SubSonic2.png)

Now... Here is me using the browser on my computer:

The login page:
(http://i399.photobucket.com/albums/pp80/MalekoKBrown/Browser1.png)

The SubSonic web interface:
(http://i399.photobucket.com/albums/pp80/MalekoKBrown/Browser2.png)

An example of something playing:
(http://i399.photobucket.com/albums/pp80/MalekoKBrown/Browser3.png)



Here are my firewall settings for Musicbee and the port for MB, which I called MBSS:

(http://i399.photobucket.com/albums/pp80/MalekoKBrown/Firewall1.png)

(http://i399.photobucket.com/albums/pp80/MalekoKBrown/Firewall2.png)

And to recap:

I have a Motorola MODEM (not router).
Only one computer on my network.
My OS is Windows 7.
My antivirus is Microsoft Security Essentials.
Title: Re: Subsonic Client
Post by: Steven on June 06, 2011, 10:39:59 PM
maleko12, i am not expecting this to start making things work but just to eliminate any doubt i have temporarily removed the logic that substitutes the subsonic friendly name with the server ip address

http://www.mediafire.com/?7778y9i2k57844p

Title: Re: Subsonic Client
Post by: Maleko12 on June 06, 2011, 10:45:33 PM
Just tried it, and, as you expected, nothing changed.
This feels like my old, lengthy bug posts. At least there's more people now to help out instead of just Steven. ;D ;D
Title: Re: Subsonic Client
Post by: Sarge on June 06, 2011, 11:05:13 PM
Just tried it, and, as you expected, nothing changed.
This feels like my old, lengthy bug posts. At least there's more people now to help out instead of just Steven. ;D ;D
Have you tried this?
You said Vibestreamer worked...check what port VS used and try setting SS to use those ports. IF they are different.
Title: Re: Subsonic Client
Post by: Maleko12 on June 06, 2011, 11:17:48 PM
Changed ports... same old same old.
Title: Re: Subsonic Client
Post by: Sarge on June 06, 2011, 11:25:33 PM
Changed ports... same old same old.

......---------o     H                    <--Punt

oh well still thinking of things to try and running out
Title: Re: Subsonic Client
Post by: phred on June 06, 2011, 11:27:55 PM
I just got home from work and have a good number of things to do, but I thought I'd catch up on the Meleko12 Soap Opera.  (I feel for you, Brother.)  Thanks for posting the screen shots.  All looks correct, IMHO.  I tried going to your subsonic.org site and can't.  I'm getting the 'unable to establish a connection' error.  Which really doesn't tell me anything since there could be a number of reasons why that's happening.  

Can you get MB installed on a machine that's outside of your home network and try from there?  I know that's not necessarily an easy thing to do, but it'd be interesting to see what happens.  Can you connect to Subsonic from outside your home (via the browser?)

I'm gonna grab some dinner, a couple of beers, and maybe stare at WTF for a while so I can clear my head and come up with some other ideas.
Title: Re: Subsonic Client
Post by: Sarge on June 06, 2011, 11:28:37 PM
1 more thing..did you try making a new SS account and trying a new sign on and password?
Title: Re: Subsonic Client
Post by: Maleko12 on June 06, 2011, 11:43:00 PM
@phred: I will try to do that by Wednesday. I used my Android app about two hours ago and everything was working perfectly (able to access my music and download some songs).

@Sarge: Can do that, but probably by Wednesday.
Title: Re: Subsonic Client
Post by: Sarge on June 06, 2011, 11:46:41 PM
ok good luck
i'm gonna drink a sh*t house worth of beer and watch womens world series of baseball on espn
Title: Re: Subsonic Client
Post by: phred on June 07, 2011, 02:06:17 AM
@Maleko12 - no hurry.  Do what you can, when you can, and report back.  The fact that you can connect via the Android just pushes me more to think something is misconfigured in MB.  Which seems unlikely since I've seen the screen shots.   In the meantime, I'll see what else I can come up with.

I heard a rumor that when we get this resolved Sarge is buying beers for everyone.
Title: Re: Subsonic Client
Post by: greenday1987 on June 07, 2011, 02:34:56 PM
Just to throw another issue in. I've changed all my folder structuring for my music since last using subsonic to:-

Media\My Music\Artist\(year) - Artist - Album Title [format &/or bitrate]

As a result SS won't pick up the folders. I'm not gonna bother donating if it won't accept my folder structures cos it's pointless if I can't use the service.  :(
Title: Re: Subsonic Client
Post by: Steven on June 07, 2011, 08:34:16 PM
i noticed it seems restrictive in the folder heirachy (2 levels) otherwise it doesnt seem to load the files. Perhaps there is a setting. I dont know it well enough to know if there is a solution
But in your case, if you go to the settings in the subsonic application, why not just remove the old collection and add
Media\My Music\
Title: Re: Subsonic Client
Post by: phred on June 07, 2011, 11:31:52 PM
When I was first looking for an app like this (about a year ago) I tried Subsonic and VibeStreamer.  My directory structure is as follows:
Volume_1\Music_Files\Artist\Album\track.mp3
Subsonic couldn't deal with it and Vibestreamer could, so I used that for a while.  Once the MB forums chatter started talking about Subsonic, I tried it again and it picks up the tracks just fine using the same structure it couldn't in a prior version.
Title: Re: Subsonic Client
Post by: greenday1987 on June 08, 2011, 06:25:43 PM
Maybe I'll try this Vibestreamer
Title: Re: Subsonic Client
Post by: phred on June 08, 2011, 11:16:34 PM
It doesn't have as nice a GUI, nor is it as configurable, but it works.
http://vibestreamer.com/
Title: Re: Subsonic Client
Post by: Sarge on June 08, 2011, 11:29:57 PM
It doesn't have as nice a GUI, nor is it as configurable, but it works.

you can use skins and themes

http://forum.vibestreamer.com/viewtopic.php?f=5&t=784&sid=bd04ed61283d5d7f789cd1ec8c1b05b8
Title: Re: Subsonic Client
Post by: phred on June 08, 2011, 11:34:10 PM
I was never able to get one skin/theme to work.  Other than the default.

Also note that as far as I can remember (which often times is about fifteen seconds ago) there's no phone app for it, nor will it work within MB.  You can, of course, hit it with a smartphone's web browser.
Title: Re: Subsonic Client
Post by: Sarge on June 08, 2011, 11:39:42 PM
I have never tried them either (themes) but when I used to use it, I remember seeing pre made themes.
I might mess with it again since my version is older one.
Title: Re: Subsonic Client
Post by: Maleko12 on June 09, 2011, 01:59:01 AM
OK... just tried using MB from another computer... and the SubSonic plugin is still showing the same error in MB. However, I can still login to SubSonic on the same computer via the web interface. Very strange indeed :(
Title: Re: Subsonic Client
Post by: greenday1987 on June 09, 2011, 08:22:23 AM
I'm loving VibeStreamer. It's far simpler than SS and does the job just as well imo.