Menu

Running multiple servers from batch files

2020-05-01
2020-05-02
  • Stephen Enge

    Stephen Enge - 2020-05-01

    First, Volker, let me echo the praise from many others - THANK YOU for this wonderful software.

    I have three server configurations that i run at different time for different purposes. I use a BAT file, an INI file and an HTM file that contains the welcome message. I have attached a sample set of files for one of the servers.. This seems to work fine, EXCEPT: Jamulus seems to ignore the <name>KFO Acoustic Jam</name> data element in the INI file and the -o parameter in the BAT file, and instead always sets the server name to that of the last server run. It seems that the only way to set the server name is manually in the Server Name field in the Jaulus Server GUI window.

    Regarding running servers concurrently: as I understand it, all you have to do is make sure to specify a different port for each. Is that right? What ranges of ports do you recommend?

    Thanks for any help you can give me
    Steve Enge

     
  • Al Udell

    Al Udell - 2020-05-01

    Hey Steve. My understanding is you don't need to set -o in the batch if you're already setting it in an INI file (-i ). Yes, you need to use a different port for each server instance. Refer to https://github.com/corrados/jamulus/wiki/Command-Line-Options. Ports 22124-22130 should be fine.

    -Al

     
  • Stephen Enge

    Stephen Enge - 2020-05-01

    OK, I found one problem - colon ( : ) mising in INI path. But after fixing it still did not work.
    It still ignores what is in the INI. do I though. does the INI have to be in a specific path? I searched around and found these two files:

    C:\Users\Steve\AppData\Roaming\Jamulus\Jamulus.ini
    C:\Users\Steve\AppData\Roaming\Jamulus\Jamulusserver.ini

    Experimentation showed that Jamulus always uses this regardless of what you tell it with the parameter. So my solution is to add this to the top of the BAT file:

    CD C:\Users\Steve\AppData\Roaming\Jamulus
    DEL Jamulusserver.ini
    COPY KFO.ini Jamulusserver.ini
    CD C:\Program Files (x86)\Jamulus

    This works for one server at a time, but what if you want to run concurrent serers? If the INI is referenced only at load and not during run, OK. But if it is referenced during run this solution could be problematic.

    Any thoughts?

     
  • Al Udell

    Al Udell - 2020-05-02

    Steve, in your batch, start with

    cd C:\KalamaJam

    Make sure your batch and INI are in this folder. Then in the same batch, run this line with whatever port you want to use

    "C:\Program Files (x86)\Jamulus\jamulus.exe" -s -i KFO.ini -p 22130

    Hope that helps.
    -Al

     

    Last edit: Al Udell 2020-05-02
  • Stephen Enge

    Stephen Enge - 2020-05-02

    Thanks! That's what I originally tried. It did not work. But if it has worked for you, I will go try again, just to be sure. Thanks!

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.