Subsonic not binding to IPv4 port in Ubuntu
Posted on: 2011-03-20
I’ve recently started using Subsonic as my music player. With it, I have streaming access to all my music via a browser or an Android application. It’s great, I love it!
About a week ago I updated Java on my system and it broke my Subsonic install. It would work locally but not remotely.
After some troubleshooting, I noticed that it was binding to the IPv6 port but not IPv4.
I dug around Google and finally found this.
Apparently, Java 1.6 favours IPv6 by default and will not use IPv4 unless you explicitly tell it to.
The fix is to edit your /usr/share/subsonic/subsonic.sh file and add the follow argument to the Java call to start Subsonic.
The Java call should look something like this:
I’m sure this will be fixed in future versions. Hopefully this will help somebody else out.