[jitsi-users] which port for jvb


#1

Hi everybody
I would like to know on which udp port is listening the jvb.I've installed the stable version of jitsi-meet, and I've read that we had to open 10000-20000 udp ports, or only the 10000 one...and when I do a netstat on my server, I've got this:# netstat -lapute |grep jvbtcp6 0 0 localhost:44500 localhost:5347 ESTABLISHED jvb 598094 28284/java udp6 0 0 [::]:59971 [::]:* jvb 596176 28284/java
so on my server, the jvb uses the udp port 44500. And if I restart the videobridge:
# service jitsi-videobridge restart# netstat -lapute |grep jvbtcp6 0 0 localhost:44930 localhost:5347 ESTABLISHED jvb 599171 28879/java udp6 0 0 [::]:26278 [::]:* jvb 596606 28879/java Now, it's the 44930 udp port.
So which udp ports are used by jvb ? Can I fix it ?
Thanks
Yann

···

--
Envoi sécurisé avec Tutanota. Obtenez votre adresse email chiffrée aujourd'hui!


#2

Hi Yannick,

> Hi everybody
>
> I would like to know on which udp port is listening the jvb.
> I've installed the stable version of jitsi-meet, and I've read that we
> had to open 10000-20000 udp ports, or only the 10000 one...
This is correct for the default configuration. It can be changed in /etc/jitsi/videobridge/config and /etc/jitsi/videobridge/sip-communicator.properties.

> and when I do
> a netstat on my server, I've got this:
> # netstat -lapute |grep jvb
> tcp6 0 0 localhost:44500 localhost:5347
> ESTABLISHED jvb 598094 28284/java
> udp6 0 0 [::]:59971 [::]:*
> jvb 596176 28284/java
What you see is an ephemeral port that is used internally in jitsi-videobridge and doesn't need to be accessible.

The ports between 10001 and 20000 (by default) are allocated only when needed, so it is normal that they are not bound and don't show up in netstat.

I would expect to see 10000 though. Check your sip-communicator.properties file for a line like this:
org.jitsi.videobridge.SINGLE_PORT_HARVESTER_PORT=10000

And also grep the logs for "AbstractUdpListener" and "SinglePortUdpHarvester".

Regards,
Boris

···

On 04/06/2018 14:39, yannick.rousseau@tutanota.com wrote:


#3

Hi Yannick,

Adding the list back.

Hi and thanks for the response

-> "I would expect to see 10000 though. Check your sip-communicator.properties file for a line like this:
org.jitsi.videobridge.SINGLE_PORT_HARVESTER_PORT=10000"

Here's my sip-communicator.properties
# cat /etc/jitsi/videobridge/sip-communicator.properties
org.jitsi.videobridge.AUTHORIZED_SOURCE_REGEXP=focus@auth.XXXXX.ddns.net <mailto:org.jitsi.videobridge.AUTHORIZED_SOURCE_REGEXP=focus@auth.XXXXX.ddns.net>/.*
org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=192.168.1.2
org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=XXXXXX.ddns.net

I think Damian already mentioned this, but a domain name won't work for this property.

So no org.jitsi.videobridge.SINGLE_PORT_HARVESTER_PORT=10000.

-> "And also grep the logs for "AbstractUdpListener" and "SinglePortUdpHarvester"."

# grep AbstractUdpListener /var/log/jitsi/jvb.log
JVB 2018-06-06 08:54:23.427 INFOS: [11] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.ice4j.ice.harvest.AbstractUdpListener.SO_RCVBUF=10485760

# grep SinglePortUdpHarvester /var/log/jitsi/jvb.log
(no response)

-> When I add org.jitsi.videobridge.SINGLE_PORT_HARVESTER_PORT=10000
in my sip-communicator.properties and restart jitsi-videobridge:
# service jitsi-videobridge restart
# grep SinglePortUdpHarvester /var/log/jitsi/jvb.log
no response ....

You might have to start a conference before it is initialized.

Regards,
Boris

···

On 06/06/2018 08:09, yannick.rousseau@tutanota.com wrote:


#4

Hi Yannick,

Adding back the list. Please don't remove it.

···

On 07/06/2018 05:33, yannick.rousseau@tutanota.com wrote:

Hi

>> "I think Damian already mentioned this, but a domain name won't work for this property.

    "

    Which property ? :

    This one
    org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=XXXXXX.ddns.net

    or this one:

    org.jitsi.videobridge.SINGLE_PORT_HARVESTER_PORT=10000.

    Because if it's the first one, what could I do ? Write a script that
    change my sip config when my public IP changes ?

Yes, the first one. Actually, after looking at the code I think a domain name should work. Note that if the address changes you will have to restart jitsi-videobridge for it to pick up the new one.

Regards,
Boris