The default URLs that MusicCabinet uses when connecting to the PostgreSQL database are:
- Code: Select all
musiccabinet.jdbc.url=jdbc:postgresql://localhost:5432/musiccabinet
musiccabinet.jdbc.initialurl=jdbc:postgresql://localhost:5432/template1
These can be overridden by using system properties. In the start script for your Subsonic/MusicCabinet server, try adding the following properties:
- Code: Select all
-Dmusiccabinet.jdbc.url=jdbc:postgresql://localhost:2345/musiccabinet
-Dmusiccabinet.jdbc.initialurl=jdbc:postgresql://localhost:2345/template1
.. to have the port changed to 2345. So in your case, replace localhost with a server of your choice and make sure to configure PostgreSQL to accept incoming connections from the server running MusicCabinet (by default, only connections from localhost are allowed).