Philip Meyer;645201 Wrote:
> I thought this would be trivial.
>
> I have allocated two IP addresses to a server, and configured each SBS
> to pick up a different IP address in the preferences:
>
> e.g: server.prefs contains:
> bindAddress: 192.168.1.3
I believe bindAddress is for the bundled instance of MySQL and used to
populate the template for the db server configuration file. If you run
your own MySQL you can just leave this set to 127.0.0.1.
You set the IP address using command line options. There are four of
them.
Code:
--------------------
--playeraddr 192.168.9.65 --streamaddr 192.168.9.65 --httpaddr 192.168.9.65
--cliaddr 192.168.9.65
--------------------
The only one that gets written to server.prefs is httpaddr. You could
also change it there, but it's not necessary if you're going to use
--httpaddr at startup.
Do the above for all servers running on the machine, not just the
'extra' ones. SBS normally binds to all of the IP addresses on the
machine, so if the first server uses all the IP addresses, any
additional servers won't run.
Additionally, from the command line you'll want to designate the
directory locations unique to each instance of the server:
Code:
--------------------
--prefsdir "D:\slim\65\prefs" --cachedir "D:\slim\65\cache" --logdir
"D:\slim\65\logs"
--------------------
If you want to clone a server.prefs file from one instance for use with
another another, you need to do the following. Cloning is nice because
you'll have all of your old server and player settings.
- Give the server/library a different name (libraryname).
- Remove the server UUID (server_uuid). Either remove the line or
blank out the UUID (use '') and a new, unique ID will be generated
when the server is started.
- If the two instances use different program installation
directories, change the paths to the IR maps (irmap entries). There
will be one entry for each client saved in the file.
- Change the music folder location (audiodir) if necessary. It can
also be specified on the command line, but since I sometimes change
it using the web interface, I don't want it overriden whenever the
server is restarted.
- Change the database name (dbsource) if you're using your own
instance of MySQL. Each server must have its own database. If you're
running either the bundled MySQL or SQLite the database will
automatically created by default in the cache folder. You can just
remove the dbsource line and the correct entry will be created when
the server starts. The dbpassword and dbusername entries are only
used for MySQL. Set them as needed.
Another tip:
- If you run different versions of the server and will be connecting
your players to them, you probably don't want firmware upgrading and
downgrading all the time. Players will work just fine with the most
recent firmare version connecting to an older server.
I designate one server as the 'main' or master server. First, copy
the server/Firmware directory from the main server installation to
each additional server installation so that all servers have the same
ip3k firmware. For SqueezePlay firmware, which is downloaded when
available, only allow the main server to download firmware updates
automatically. Any additional servers should have updates disabled in
server.prefs (set checkVersion: 0 and autoDownloadUpdate: 0).
--
JJZolx
------------------------------------------------------------------------
JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10
View this thread: http://forums.slimdevices.com/showthread.php?t=89202
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta