Centova Technologies Forum

Centova Cast v3 => General discussion => Topic started by: kahfluie on January 13, 2017, 02:01:03 pm

Title: SHOUTcast v2 Question
Post by: kahfluie on January 13, 2017, 02:01:03 pm
How many ports does one v2 server need? I created a server say on port 8002. When i went to create another server on port 8004, I got a message saying it was already in use. Same for 8006, 8008 (I stopped there). I was finally able to create the server on port 8012. (no other 8000 series ports were on the server, except for the  first one created.

Because of the Chrome issue, I have customers that want to switch, but don't want their port number to change.

Thoughts?
Title: Re: SHOUTcast v2 Question
Post by: Dennis Fallon on January 13, 2017, 06:06:53 pm
A regular V2 setup takes 2 ports.  For example, 8000 & 8001. 

If you are also using Auto DJ, it takes 4 ports, for example, 8000, 8001, 8002 & 8003.
Title: Re: SHOUTcast v2 Question
Post by: kahfluie on January 14, 2017, 12:59:37 pm
Thanks Dennis.. I figured that may be the case, but wanted to be sure. Thanks again.
Title: Re: SHOUTcast v2 Question
Post by: DrO on January 15, 2017, 03:33:03 pm
The default of the v2 DNAS is to use 2 ports (portbase & portbase+1) to mirror the same behaviour that the v1 DNAS had. It's only with the Centova setup (or if you've set it up manually) that you generally have to assume a 4 port window if the auto-dj is used (due to acting a bit like a DNAS itself to accept DJ connections, hence the doubling).

So if trying to preserve existing port mapping when going from v1 to v2 then it should keep working unless you've now got auto-dj but didn't have that previously and you might then need to look at mapping from the old ports to new mappings via iptables, etc.

-dro
Title: Re: SHOUTcast v2 Question
Post by: kahfluie on January 16, 2017, 10:21:21 am
Thanks, Dr.0... appreciate the info.
Title: Re: SHOUTcast v2 Question
Post by: Mr_NightRyder on January 23, 2017, 10:34:56 am
That isn't completely true... answers vary based on the autodj method you use.  Example.. I know that liquidsoap uses 4 but from what I understand sc_trans2 uses 5 so depends on the autodj method you're using.
Title: Re: SHOUTcast v2 Question
Post by: Dr Bunsen on January 24, 2017, 11:35:53 am
The default of the v2 DNAS is to use 2 ports (portbase & portbase+1) to mirror the same behaviour that the v1 DNAS had. It's only with the Centova setup (or if you've set it up manually) that you generally have to assume a 4 port window if the auto-dj is used (due to acting a bit like a DNAS itself to accept DJ connections, hence the doubling).

So if trying to preserve existing port mapping when going from v1 to v2 then it should keep working unless you've now got auto-dj but didn't have that previously and you might then need to look at mapping from the old ports to new mappings via iptables, etc.

-dro

I seem to remember the iptables code I used to map from the old to the new when I upgraded going as follows...

iptables -t nat -I PREROUTING -p tcp --dport <old port> -j REDIRECT --to-port <new port>
iptables-save