h3x.se spotify remote


If your question is not covered below post a comment here on h3x.se, or contact me: johannes [@.@] h3x.se

General Issues

These apply to all OS's (windows-linux-osx)

Q: Help, getting password error. I have a facebook login!

A: You will need a device login, see this page on how to get one: https://sonos.custhelp.com/cgi-bin/sonos.cfg/php/enduser/std_adp.php?p_faqid=1166

Q: Help I'm getting "Connection Error: XYZ"!

401: wrong Username/password

These are connectivity/firewall related - can also be that the Spotify servers are unstable / having issues - try again in a couple of hours.
116: unable to contact spotify servers (Have you allowed servify to bypass your firewall?)
117: unable to contact spotify servers (Have you allowed servify to bypass your firewall?)
405: unable to contact spotify servers (Have you allowed servify to bypass your firewall?)
406: a Spotify Premium account is required to use libspotify. Spotify error codes
409: a Spotify Premium account is required to use libspotify. Spotify error codes

Q: Do you need Spotify premium or other Spotify products you have to pay a monthly fee for this to work?

A: Yes. Libspotify requires a Spotify Premium account.

Q:Could not connect to Servify, i/o exception - chosen connection may be unavailable

A: This can be due to a host of reasons. A few steps to debug is as follows; (most likely cycling your WiFi connectivity will resolve the issue).
x) Make sure you have tried connecting to all of the IP adresses listed in the Servify window, while being connected to the local network!
x) I'd suggest turning off/on the WiFi on the android device and then try again. Sometimes the WiFi-radio icon is on even though your device has been de-registered from the access point (the router).
x) Try surfing to servify from another computer on your network, http://IP:PORT , where ip/port is what servify is using. If you dont have another computer you can download ConnecBot and open a 'telnet' session to servify.
x) Open access to servify from the Internet - then use your 2g/3g internet access to try to connect to servify

Q: What is the listen_port / local_port?

A: The listen port is a port you yourself set when starting Servify. This is later the port which ReSpot will connect to, valid values are usually between 1100 to 65000.
In ReSpot you would then connect to the IP of the computer running Servify and on port 1111

Q: How do I autostart servify? (assuming windows here - but it would be fairly similar on osx/linux)

A: That’s what I do, I have a .bat with the full parameters in autostart (for anyone who doesn’t know how to do this in win – open notepad and input “servify path\servify.exe usr psw port bitrate” then save the file as file_name.bat and include it in your autostart folder. E.g. c:\servify\servify.exe user password 1337 320) – means servify is launched on start up and you won’t have to input user details each time. Even if you don’t want it to autostart, you can use the .bat as a shortcut or “config file” of sorts.
Thanks to wb for the long explanation!

Windows Issues

Update to the latest .NET framework, typically done via Windows Update.

Q:I'm getting "HRESULT: 0x800703E6 invalid access to memory location

A: Solved with libspotify v10. Download a new version of Servify (clear your browser cache before, otherwise you may be re-downloading an old version)

Linux Issues

Q: I get this libasound error: Unhandled Exception: System.DllNotFoundException: libasound

A: the solution is to do the following (assuming ubuntu at least):

sudo ln -s /usr/lib/libasound.so.2 /usr/lib/libasound.so

Q: Getting alot of: ALSA write error code 127. AlsaPlayer bailing out. What do I do?

A: User supplied solution (Thanks Lammert!):
fixed it by adding the following lines to /etc/asound.conf

pcm.!default {
type pulse

ctl.!default {
type pulse

pcm.pulse {
type pulse

ctl.pulse {
type pulse

Also see: https://wiki.ubuntu.com/PulseAudio

Q:Help, I'm using Linux and there's no sound!?

A: This may be due to MONO hogging OSS. Please try starting Servify/C# with: "padsp Servify.exe username password localport bitrate debug"
Update: see other entry in the FAQ below.
If this does not help - please let me know!

Q: Getting NewtonSoft.Json.Net.dll error (ubuntu 10.10)

** (./Servify.exe:2746): WARNING **: The following assembly referenced

from /path/to/servify/Newtonsoft.Json.Net20.dll could not
be loaded:
Assembly: System.Data (assemblyref_index=1)
Public Key: b77a5c561934e089
The assembly was not found in the Global Assembly Cache, a path listed
in the MONO_PATH environment variable, or in the location of the
executing assembly (/path/to/servify/).

A: install the 'libmono-system-data2.0-cil' package and this issue should go away. Something changed between ubuntu 10.4 and 10.10 with the default mono installation, so required dependencies are no longer installed by default in ubuntu.

Mac OS X Issues

Q: I'm using Mac OS X and can't get this to work!

x) Install "MONO", download and install Mono Runtime from: the mono webpage
x) make sure you're starting Servify from the directory it's unpacked in! ie:
"cd /Location/where/servify/is_unpacked"; "mono Servify.exe user pass port bitrate"
Still having issues? Drop me a mail / comment / irc msg.

Q: dyld: lazy symbol binding failed: Symbol not found: ___bzero

A: I have not found a solution to this issue. Seems to happen on older OS X versions.

Q: An exception was thrown by the type initializer for System.Drawing.GDIPlus

A: See this page: http://www.mono-project.com/FAQ:_Winforms#GDIPlus_Initializer_Exception (need to install libgdiplus)

Comments () Trackbacks (0)
  1. I second that. Servify is running great on Voyage linux and there is no other good alternitive.

  2. Is there anyone that got this working nowadays? Just getting a bunch of errors, tried on different OS/computers

Leave a comment

No trackbacks yet.