Page 1 of 1

Port Numbers ...

Posted: Sun 07 Oct 2018 12:59 pm
by odintheterrible
Hi,
Does anyone know how to configure MX to use different port numbers from the ones set at installation ?? ... 8998 & 8002 I think ?

Thanks

Re: Port Numbers ...

Posted: Sun 07 Oct 2018 1:42 pm
by steve
Use the -port and -wsport parameters when invoking CumulusMX.exe

Re: Port Numbers ...

Posted: Sun 07 Oct 2018 4:53 pm
by odintheterrible
Brilliant ... thanks for the heads up.
However, as a novice to Pi, what would be the correct syntax to use to invoke Cumulus with the -port and -wsport syntax ?
Many thanks

(I'm asking this as I'd like to run the Pi as a back to back against the mini pc to see if it's as good as or better and I don't want to start messing with the network router's settings just yet as the default ports are set to forward to the pc) :?

Re: Port Numbers ...

Posted: Sun 07 Oct 2018 5:01 pm
by steve
An example is given in the announcement post containing the download and the installation instructions:

When Cumulus starts, it will display the URL of the user interface. It runs on port 8998 by default; if this is not suitable for some reason you can over-ride it using the '-port' parameter on the command line, e.g. to use port 9999 instead:

sudo mono CumulusMX.exe -port 9999

Re: Port Numbers ...

Posted: Mon 08 Oct 2018 7:59 pm
by odintheterrible
Many thanks. Having looked again at the article I see. Apologies.

As an after thought, do I also need to do this with port 8002 as well using the same syntax ?

Thanks

Re: Port Numbers ...

Posted: Mon 08 Oct 2018 8:17 pm
by laulau
From Cumulus MX Announcements
It is now possible to override the default port for the websocket server, by passing a -wsport parameter to the program, e.g.:

sudo mono CumulusMX.exe -wsport 8888

This is useful if port 8002 is already in use, or you want to run multiple instances of MX on the same machine (in the latter case you would also need to supply a -port parameter to use a different port for the HTTP interface). The 'Dashboard', 'Now', and 'Gauges' pages interrogate Cumulus when they load to find the websocket port that instance is using.
So change -wsport only if needed i think

Re: Port Numbers ...

Posted: Thu 11 Oct 2018 8:53 pm
by odintheterrible
Brilliant info... many thanks.

OK, not looking to make an ass out of myself but as a novice to pi/Linux .... in the boot command for CUmulusMX I now know how to change the port that Cumulus uses at start up and thanks to your post I know how to change the web socket port ... but as both the standard MX port and the WS port are being used by another machine on the network, how would I combine both commands at the launch of MX ????

sudo mono CumulusMX.exe -port 9999 (to change the port that MX is running on) ... but then how do I incorporate the change to the WS port number (-wsport 8008) as well so that both port numbers are changed at the start of the program???

Many thanks

Re: Port Numbers ...

Posted: Thu 11 Oct 2018 9:43 pm
by laulau
try:
sudo mono CumulusMX.exe -port 9999 -wsport 8008
Perhaps both options will be taken into account. :idea:

Re: Port Numbers ...

Posted: Fri 12 Oct 2018 10:03 am
by odintheterrible
laulau wrote:From Cumulus MX Announcements
It is now possible to override the default port for the websocket server, by passing a -wsport parameter to the program, e.g.:

sudo mono CumulusMX.exe -wsport 8888

This is useful if port 8002 is already in use, or you want to run multiple instances of MX on the same machine (in the latter case you would also need to supply a -port parameter to use a different port for the HTTP interface). The 'Dashboard', 'Now', and 'Gauges' pages interrogate Cumulus when they load to find the websocket port that instance is using.
So change -wsport only if needed i think
OK ... got that ... but how would you change both the internet port, 8998 and the web server port in the same instance of the command line to start Cumulus.exe on different port and wsport numbers ????? Thanks

Re: Port Numbers ...

Posted: Tue 16 Oct 2018 8:11 am
by freddie
odintheterrible wrote:how would you change both the internet port, 8998 and the web server port in the same instance of the command line to start Cumulus.exe on different port and wsport numbers ????? Thanks
Did you try this:

Code: Select all

sudo mono CumulusMX.exe -port 9999 -wsport 8008
as suggested by laulau a couple of posts back?