Scaling Up Your Jitsi with Jitsi Bridges

sudo hostnamectl set-hostname jitsibridge1.YOUR_DOMAIN
jitsibridge1.YOUR_DOMAIN             localhostYOUR_LOCAL_IP_IF_ANY  jitsibridge1.YOUR_DOMAIN  jitsibridge1YOUR_PUBLIC_IP        jitsibridge1.YOUR_DOMAIN  jitsibridge1127.0.0.1             localhost                 jitsibridge1.YOUR_DOMAIN# The following lines are desirable for IPv6 capable hosts::1     localhost ip6-localhost ip6-loopbackff02::1 ip6-allnodesff02::2 ip6-allrouters
ping "$(hostname)"
PING jitsibridge1.YOUR_DOMAIN ( 56(84) bytes of data.64 bytes from localhost ( icmp_seq=1 ttl=64 time=0.026 ms64 bytes from localhost ( icmp_seq=2 ttl=64 time=0.041 ms64 bytes from localhost ( icmp_seq=3 ttl=64 time=0.045 ms


Run following commands;

echo 'deb stable/' >> /etc/apt/sources.list.d/jitsi-stable.listwget -qO - | apt-key add - apt-get install apt-transport-https apt update apt upgrade

Firewall Setup

Important note: You need to be careful to allow your own ssh port. It is assumed here that shh connection port is 22. You shoud shange with your yours if it is different. Otherwise you may not reconnect to your VM after you logged out.

ufw allow 22/tcp &&ufw allow 443/tcp &&ufw allow 4443/tcp &&ufw allow 10000/udp &&ufw enable

Video Bridge Setup

Note: As hostname, enter FQDN of Main Jitsi Server (YOUR_JITSI_DOMAIN) when prompted during the install.

apt -y install jitsi-videobridge2


Now you need to configure your newly installed VM to connect your new bridge to your main jitsi server.

sudo su -
  • org.jitsi.videobridge.xmpp.user.shard.USERNAME and org.jitsi.videobridge.xmpp.user.shard.PASSWORD should be same as in your JMS file.
  • If your JVB VM is behind the NAT so you will set up following two configuration parameters;
#If your Jitsi set up is behing the NAT comment out the line below
#If your Jitsi setup is behing the NAT set up your local ip othervise comment out
#If your Jitsi setup is behing the NAT set up your public ip othervise comment out


Before testing restart your new Video Bridge to show up your new configuration. To do so run;

/etc/init.d/jitsi-videobridge2 restart
INFO: [31] org.jitsi.jicofo.bridge.BridgeSelector.log() Added new videobridge: Bridge[jid=jvbbrewery@internal.YOUR_JITSI_DOMAIN/jitsibridge1, relayId=null, region=null, stress=0.00]
/etc/init.d/jitsi-videobridge2 stop .



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store