Menu

How to make my server truly private?

2020-03-29
2020-04-06
  • PixelPusher

    PixelPusher - 2020-03-29

    I followed the instructions that corrados provided and it brought up a headless server on my Ubuntu 18.4.3 VM, running in the DigitalOcean.com cloud. I can connect to it from my desktop, so I have it successfully running. The problem is that there are other people connecting to it, too. I don't know how they found out about it, but I really want to set this up so only my session group can get in.
    So, how do I make this private? There might be configuration options available in the GUI, but those don't help in a headless server.

    Thanks,
    Thom

     
    • Brawndo

      Brawndo - 2020-04-05

      This worked for me on Ubuntu 18.04 headless server.

      Create a file called Jamulusserver.xml in /usr/local/bin/ and paste this XML into it:

      <server>
       <centralservaddr></centralservaddr>
       <defcentservaddr>1</defcentservaddr>
       <servlistenabled>0</servlistenabled>
       <name></name>
       <city></city>
       <country>225</country>
       <autostartmin>1</autostartmin>
      </server>
      

      Use this command in the jamulus.service file to start the server:

      ExecStart=/usr/local/bin/Jamulus -s -n -i /usr/local/bin/Jamulusserver.xml
      
       
      • yann

        yann - 2020-04-05

        Is it possible to use this method when starting Jamulus as systemctl start Jamulus?
        If running it as a service?

        UPD: Sorry, figured this out already. Yes, it's exactly the case, thank you!

         

        Last edit: yann 2020-04-05
  • Gilgongo

    Gilgongo - 2020-03-30

    Hi Pixel - the configuration for private servers is decribed here.

     
    • yann

      yann - 2020-04-05

      @Gilgongojones the page you linked to says "This mode is activated by un-checking "Register my server..." How can I "uncheck" anything on a command-line Linux server? Shouldn't it be like a config file option?

       

      Last edit: yann 2020-04-05
      • Gilgongo

        Gilgongo - 2020-04-05

        On the command line, I think you just need to leave out the -e option so that no central server is given (I've also seen people set -e to localhost, but I'm not sure if that's necessary). It can also be in a config file option if you're using -i

         
        • yann

          yann - 2020-04-05

          I tried starting with -e none, but it didn't work. Where is the config file?
          And what if I am starting it with systemctl start jamulus?

           
          • Gilgongo

            Gilgongo - 2020-04-05

            Sorry, I was being a bit brief. -e requires the central server address jamulus.fischvolk.de, so the syntax is -e jamulus.fischvolk.de

            Use of a config file is optional (using -i) and isn't there by default. There's some docs on this here.

            If you're using systemctl then it depend how the unit file is starting the process. But bascially if you want a private server you need to start the Jamulus process with --nogui --server if you're running headless.

             
            • yann

              yann - 2020-04-05

              The reply by Brawndo above seems to cover the case. Thank you!

               
              • Gilgongo

                Gilgongo - 2020-04-05

                For the config file, yes, but there's not much reason to have a config file unless you plan on running multiple Jamulus instances on the same machine (although it might be nice to be able to reload into new configurations using systemctl without having to to run daemon-reload I guess).

                Just wanted to make tha clear.

                 
  • fatdog

    fatdog - 2020-04-02

    I am running a Jamulus server on Ubuntu 18.04, users can connect to it from Windows hosts on the internet using the Jamulus client whether in public or private mode. I can see their ip addresses in the terminal output when the Jamulus server is running.
    I can start the Jack Server- I compiled the QJackctl gui to configure Jack, I get an error below:

    The Jack server sample rate is different from the required one. The required sample rate is: 48000 Hz. You can use a tool like QJackCtl to adjust the Jack server sample rate.
    Make sure to set the Frames/Period to a low value like 128 to achieve a low delay.

    However, by changing the audio interfaces in the gui I can sometimes get the client to connect using Jamulus -c 127.0.0.1
    When the client connects, I get the same gui client as on a Windows10 machine. However, I get a cannot allocate memory, or cannot lock down xxxxxx byte memory ares error (xxxx=amount of bytes ) in the message log
    Even when the error appeared in the Jack message log, I could randomly connecting to Jamulus servers from the connection menu, and I could hear the audio fine from the muscians connected.
    However, my mic was not working. Mic works fine with skype and other webconfercing apps.

    I am only using local host to test the client connection. I have tried all the different audio interfaces available in qJackctl gui, but the usb mic interface (webcam) does not work in Jamulus. I added my username to the limit.conf file allowing memlock and unlimited memory. I also added my username to the audio group, also with same attributes in the /etc/security/limits.conf file
    So now, running ulimit -l shows my username has unlimted memory, but the memory errors still randomly appear.
    To summarize, the Jamulus client only works intermittently, and when it does, whether there are memory errors or not, I can hear other musicians on the servers when I connect to them, but the usb
    mic does not work.

     
  • Gilgongo

    Gilgongo - 2020-04-02

    Seems rather strange - are you definitely sure you're not running multiple client instances by mistake?

     
    • fatdog

      fatdog - 2020-04-02

      Thanks for your quick response, Gilgongo. I don't see this when I run ps as
      checking the client processes. Maybe it just doesn't recognize the
      Logictech webcam ports.
      Right now, I am using the windows client on another pc connecting to the
      server running on another pc on my local lan. Server works fine on ubuntu
      18, can hear my guitar thru the same webcam on the windows pc which is
      running on a ubuntu 14 host.
      I need to get another mic and see if the Jack Server recognizes it. I am
      also going to try to hook up a Behringer euphoria usb mixer between the mic
      and the pc soundcard, plugging the guitar and mic into the mixer.

      On Thu, Apr 2, 2020 at 5:13 PM Gilgongo gilgongojones@users.sourceforge.net
      wrote:

      Seems rather strange - are you definitely sure you're not running multiple
      client instances by mistake?


      How to make my server truly private?
      https://sourceforge.net/p/llcon/discussion/server/thread/81c9851029/?limit=100#72c3


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/llcon/discussion/server/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Jim Stanko

    Jim Stanko - 2020-04-06

    Hi, I'm new to Jamulus. I have two questions which I hope some one can help me with.
    I have a group of friends with whom I regularly jam. So, I tried to follow the process set out by SImonTomlinson's FB post on "How to create a pivate server for band rehearsals".
    I am using Windows 10 on a Toshiba Satellite S55A. I am using the WIndow Defender Firewall and I made sure that I added Jamulus as an allowed application and added the rule to allow UDP traffic on port ranges between 22123 and 22125. I also enable both Public and Private networks., and named the rule Jamulus. And I can see the Jamulus rule that I added.
    I thought I had succeeded because when I launch the Jamulus home screen, and hit the connect button, my server name shows up at the top of the list with about 3ms latency. I am running this on an ethernet connection, so I don't think I'm behind a router. I can click on my server name, and I show up and as connected. I can play and hear myself and see the vue meters moving. So I thought I was there...
    First question: I gave my PC's IP address to my jam friends for a trial run, but they couldn't seem to connect. They tried both the IP address, and when that didn't work, they tried entering the server name I had I set up. Neither worked. Is there somehting else that they (or I) needed to do so they can connect to my server/room?
    Second question: I thought, well, maybe I should have made it a public server so that it would be more easily findable. And I though maybe I could edit the server setup to change to being registered as a Central Server. But when I try to launch the Jamulus server, I get an error dialog box that says: "Network error: Cannot bind the socket (maybe the software is already running)." So I closed everything down, shut down my PC and rebooted. But I get the same error. I can see in the task manager that a Jamulus application is running although I didn't actually launch it after rebooting.
    Can anyone suggest how I can fix this, either as a private server, or converting to a Registered server. I would very much appreciate any help you provide. Thanks!

     

    Last edit: Jim Stanko 2020-04-06
    • Gilgongo

      Gilgongo - 2020-04-06

      Hi Jim - there could be different issues here so to try and narrow it down,
      I would first set up a public server and see if you all can connect like
      that (you don't need to open ports on your router).

      If they can, then you'll know the hardware and network setup is ok at both
      your end and theirs.

      Then, assuming your router and firewall are set up ok (they appear to be),
      make the server private. The only remaining issue then is the address your
      friends use to connect, and whether that is in some way the problem.

      How are you determining your router's public address? Do you have dynamic
      DNS or a fixed IP? Also, can your friends ping your address from their end,
      for example?

       

      Last edit: Gilgongo 2020-04-06
  • Jim Stanko

    Jim Stanko - 2020-04-06

    HI Gilgongo, Thanks for your quick reply. I was also having a problem that I couldn't launch the Jamulus server app to check on my esettings. I also got a reply from Ari Erev, and he suggested that I might havre checked the box to Start Server Minimized when I set up my server, Ithaca OT Jam. So, as he suggested, I used the task manager to end Jamulus.exe. Then I was ble to get to the server and uncheck Start Minimized box.
    Now I can connect to my server with my IP address, but the server name doesn't show up in the Connect windoww when I select the connect button. Aslo I do not see my icaon and faders afeter connecting via IP addresss. I do see the vue meters respoinding , so I think I am connected. I attached some annotated screen shots in an MS-Word document, andthat I also sent to Ari.
    I'm making progress!
    I did download SImon Tomlinson's guide to setting up a private server and I read all the serve docs on the Jamulus site. But I'm still uncertain about how to make the changes. I'm thinking maybe I should try starting with my group letting the server be public so it would be easier for them to find. Then maybe later shift to private? But I'm noit sure how to do that.
    Thanks very much for your help, much appreciated!

     
MongoDB Logo MongoDB