Configuring LiveKit and media servers in BigBlueButton 4.0

Plan and verify LiveKit media server changes in BigBlueButton 4.0, including interface filtering in livekit.yaml and moving audio, camera or screen sharing to FreeSWITCH or mediasoup. Learn the trade-offs and the tests to run after each change.

On this page

When to configure LiveKit and media servers in BigBlueButton 4.0

Configure LiveKit or the alternative media servers when the default LiveKit path cannot reach or serve some of your users, such as attendees on networks that block its media traffic, or when you need audio, camera or screen sharing to run through FreeSWITCH or mediasoup instead. Confirm each change against the 4.0 build you run, because settings that worked on earlier releases may not carry over. BigBlueButton 4.0.0 was released on October 14, 2026, and it installs on Ubuntu 24.04 64-bit, as the BigBlueButton install docs describe. Direct upgrades from 2.6, 2.7 or 3.0 are not supported, so start from a clean server installation and record its working state before you edit anything in livekit.yaml.

Begin by listing which users fail and on which feature, because a failure limited to one network calls for a different fix than a feature that fails everywhere. Check basic reachability first: TCP ports 80 and 443, UDP ports 16384 to 32768, and a TURN path for users behind restrictive firewalls. Those problems look like media faults but often sit outside the media server. Interface filtering in livekit.yaml controls which addresses the media server uses, so it matters most on hosts with several interfaces, private addresses or container bridges. Switching a feature to FreeSWITCH or mediasoup changes the media path for that feature only, so confirm in the 4.0 documentation which switches your build supports. Test a call from each network type before and after every change, and change one setting per test.

Media server options and when each one fits

This table compares the LiveKit default with FreeSWITCH and mediasoup for audio, camera and screen sharing in BigBlueButton 4.0. Read each row as a decision: the control point shows where the choice is made, the default column shows when keeping it fits, and the trade-off column lists what a switch adds to your support and testing work. Confirm every setting name in the 4.0 documentation before you rely on it, and check it against the release you deploy.

OptionSetting that controls itKeep the default whenTrade-off of switching
LiveKit default (audio, camera, screen sharing)Default media server in 4.0. Network interface filtering is set in livekit.yaml; confirm other keys in the 4.0 docs.Your servers and clients work well on the default and you have no need for a second media path.Support scope stays smallest, but any interface or network change still needs a call quality test.
FreeSWITCH for audioAudio media path selected in the 4.0 configuration; confirm the exact setting name and its location in the 4.0 docs.Audio problems do not occur on the default path and your team already runs FreeSWITCH operations.Audio moves to a second media stack, so firewall, TURN and call quality tests must cover both paths.
mediasoup for camera and screen sharingVideo media path selected in the 4.0 configuration; confirm the setting name for camera and screen sharing separately.Camera or screen sharing shows quality or stability issues on the default and you can test the change.Video on mediasoup changes the media path your firewall rules and TURN checks were built around.
Mixed setup (audio and video on different stacks)Separate settings per media type; confirm in the 4.0 docs that they can be set independently.Rarely the first choice, since one fault can span two media stacks and be harder to diagnose.Two media stacks double the test matrix and the places to look during an incident.
Network interface filteringlivekit.yaml controls which interfaces are used; check key names against your 4.0 release.Your host has one public interface, or the defaults already pick the correct address.Filtering the wrong interface can break media on NAT hosts, so change it only with a test plan.
Firewall and TURN settingsKeep TCP 80 and 443 and UDP 16384 to 32768 reachable; TURN is recommended for restrictive firewalls.Users join from open networks and no TURN server is needed yet.Each media server change needs its own firewall and TURN check, because media paths differ.
Call quality test after any changeNo single setting. Test audio, camera and screen sharing from inside and outside your network after each change.Still needed after any change, including a return to the default.Testing takes staff time for each media path, so schedule it before users join.

How client media reaches the chosen media server

The diagram starts at the browser, which sends signaling to the BigBlueButton front end over HTTPS and WebSocket, then sends audio, camera and screen sharing media as UDP toward the host. That media crosses the firewall on the public interface, which is the trust boundary, and reaches the host's network interfaces within the UDP range 16384 to 32768. The interface filter in livekit.yaml decides which addresses the LiveKit media server advertises to clients, so check that step first. If a client cannot join or its media stalls, confirm that the firewall allows the UDP range and that the advertised address is reachable from the client's network.

Browser media path to LiveKit, with the interface filter and public firewall marked.

Set up and verify a media server change in order

This sequence changes which network interface the default LiveKit media server uses, then moves the chosen media types to their target server and checks the result with a test call. Each step ends with a check, so the operator knows whether to continue or roll back. Work through it on a staging server first where possible, and keep the working configuration so it can be restored.

  1. Back up configuration and record working state

    Before anything changes, the operator copies livekit.yaml and the other BigBlueButton configuration files that touch media. Store the copy outside the live configuration directory so a package update or a bad edit cannot remove it. They then record the state that works today: which media server carries audio, camera and screen sharing, which address the media server advertises to clients, and the result of one test call. The step is done when the backup can be read back and the recorded state matches what a test participant sees in a meeting.

  2. Inventory the host's interfaces and routes

    The operator lists every network interface on the server with its addresses using standard Linux tools such as ip addr and ip route. They note which interface carries the default route, which container or VPN interfaces exist, and which public address maps to the server's private address if it sits behind NAT. Confirm the public mapping with the network team or the cloud console, not from memory. Keep this list with the backup. The step is done when every address the media server could advertise is named with its interface, and the team agrees which one clients should reach.

  3. Edit the interface filter in livekit.yaml

    The operator changes the interface filter in livekit.yaml so the LiveKit media server uses only the interface chosen in the inventory. Interfaces that should not carry media, such as container bridges or VPN tunnels, are excluded. Confirm the exact setting name and accepted values against the 4.0 documentation for your release before editing. Make one change at a time so a rollback stays simple. The step is done when the file parses without errors and the filter matches the inventory list line for line.

  4. Restart and confirm the media services

    The operator restarts the BigBlueButton services affected by the change, in the order given in the 4.0 documentation, and checks that each one reports running. The startup logs should show no errors. They confirm that the advertised address in the LiveKit logs or status output matches the chosen interface. From a machine outside the server's network, they check that UDP ports 16384 to 32768 are reachable, since BigBlueButton requires this range. The step is done when all services are up, the advertised address is the expected one, and the UDP range is open from outside.

  5. Switch the chosen media type to its target

    For each media type in the plan, the operator changes its target server to FreeSWITCH or mediasoup, using the setting named in the 4.0 documentation. Audio, camera and screen sharing are switched one at a time, so each switch can be tested alone. Other media types stay on their current server. The operator writes each setting they changed and its previous value into the backup notes. The step is done when a new meeting shows the switched media type on the target server, confirmed in the server logs for that meeting.

  6. Run a test call with audio and video

    The operator starts a meeting on the changed server and joins with at least two test participants, ideally one on the server's network and one on an outside network. Each participant turns on the microphone, camera and screen sharing, and confirms the other can hear, see and view the shared screen. If users behind restrictive firewalls matter to the deployment, repeat the test from such a network with TURN in use. The step is done when a test participant joins with audio and video, the media path matches the advertised address, and the result is recorded with the backup for later comparison.

Which network interfaces the media server should use

When the media server host has one network interface with a public address, there is little to filter, but LiveKit can still offer addresses that clients cannot use. Container bridges, Docker networks created for document conversion and VPN tunnels all add interfaces to the host, and each one is a possible candidate for client media.

  • Filter virtual interfaces: exclude Docker bridges and other virtual interfaces in the interface settings in livekit.yaml, so browsers receive only the public address.
  • Confirm the bound address: run ip -br addr and check that the public address sits on the interface you expect.
  • Check the UDP range: confirm that UDP ports 16384 to 32768 are open from the internet to the host, as the install documentation requires.
  • Verify the advertised address: compare the address in the LiveKit logs after restart with the public DNS record for your BigBlueButton hostname.
  • Test from outside: join a call from a network outside your office and confirm that audio and video flow in both directions.

Check that the advertised address matches your public DNS record before you accept the configuration.

Security risks when you change the media path

These cards cover the parts of the media path that change most often: network reachability, the key file, host access, TURN, the change record and any legacy media path. They connect because one edit to the interface filter can open, close or misroute the UDP media range, so each change needs a named owner, a test and a written record.

UDP media range after interface changes

Changing the interface that LiveKit listens on can leave the UDP ports 16384 to 32768 closed or pointed at the wrong address. BigBlueButton needs that range reachable for media, so firewall and security group rules must follow every interface, address or NAT change. After each change, confirm the range is open from outside the host, and run a test call from a client on a different network segment. Check the install docs for the port requirements that apply to your topology.

Install docs

Credentials stored in livekit.yaml

The livekit.yaml file holds server-side key material that LiveKit relies on. Anyone who can read the file can use those keys to act as the media server, so limit ownership and read permissions to the service account and root. Keep copies of the file out of tickets, chat threads and shared backups, and apply the same permissions to every backup location. Ask your vendor or the LiveKit documentation which values in the file are secrets and how to rotate them.

Administrative access on the media host

Anyone with shell access to the media host can change the interface filter, restart services or read configuration, which makes this host a high-value target. Limit administrator accounts to named individuals, use key-based SSH, and close any access you do not need. Write down who may edit livekit.yaml and who approves a change before it is made. Confirm whether the host is reachable from networks outside your management zone.

TURN credentials and exposure

Users behind restrictive firewalls may depend on a TURN server, which carries its own shared secret and publicly reachable ports. Keep that secret in its configuration file only, out of web pages and LMS embeds, and rotate it if it leaks. Check that the TURN host answers on the ports you publish and that its certificate matches its hostname. Changing the media path can change which addresses clients receive, so retest TURN after every change.

Logging of media-path changes

Without a record of edits, a call quality problem or an unexpected open port is hard to trace to its cause. Log each change to the interface filter and firewall rules, with the time, the person and the reason. Confirm where LiveKit and BigBlueButton write their logs on your host, how long they are kept, and whether they are copied off the server. Keep the change record together with the test results for each change.

Status of re-enabled FreeSWITCH or mediasoup

Switching audio, camera or screen sharing back to FreeSWITCH or mediasoup brings back a media path that is not the 4.0 default. Before you re-enable it, confirm the release line, the security fix policy and the support status of that component with BigBlueButton Inc. or your support provider. Then add its packages and open ports to your patching and monitoring plan, since an unpatched path can outlive the reason it was turned on.

BigBlueButton releases

Testing call quality after a media server change

Test the change with a fixed matrix that you run the same way before and after the switch, so the results can be compared. Cover six cases: audio only, camera video, screen sharing, a meeting with several participants, a user on a restrictive network, and a recording check. For every case, write down three things: which media path carried the session (LiveKit, FreeSWITCH or mediasoup), whether media connected at all, and any drops, freezes or degraded audio or video that participants reported. Use the same devices, browsers and room settings in every run so that any difference points to the server change itself.

The restrictive network case needs its own checks because it takes a different route to the server. Connect a user behind the firewall profile you actually serve, and record whether media connected directly or through the TURN relay, along with the path that carried it. Before you start, confirm how your environment shows that detail, such as client connection information or server logs, because the check depends on it. Audio, camera and screen sharing can each run on a different path, so record the path for each media type separately in the multi-participant test. For the recording check, play back the saved file and confirm that audio and video from each path appear, noting any gaps or silence against the same timestamps used in the live test.

Set acceptance thresholds from your own baseline. Run the matrix before the change, keep the results, and agree in writing what counts as acceptable for connection success, drops and audio or video degradation. No vendor figures are supplied for this page, so your baseline is the only reference you can defend in a review. After any later change to the media configuration, run the full matrix again and compare each row with that baseline. A failed row is a finding to investigate, and it should block sign-off until the cause is known and the row passes on retest.

Limits to confirm in your 4.0 environment before changing media servers

Changing the media path in BigBlueButton 4.0 is only safe when your build, network and front ends all support it. The points below tie together the version you run, the media servers that remain in it, the ports your firewall must allow, the load each path can carry and the front ends that send users into meetings. Confirm each one against the 4.0 release notes and the 4.0 install documentation before you edit any configuration.

Build and point release support

Confirm that your 4.0.0 build, or the later point release you plan to run, supports the switch you need for each media type: audio, camera and screen sharing. Point releases can change media behavior, so check the exact version you install and do not carry over results from an earlier test. Read the release notes for that version and record which media types it lists for each media server. Keep a copy of the notes with your change record.

BigBlueButton releases

FreeSWITCH and mediasoup availability

LiveKit is the default media server in 4.0, so confirm that FreeSWITCH and mediasoup are still present in the same build before you plan a switch back. Check the install documentation for the components and configuration each one needs on the host, and whether both can run on one server. If you plan to run them side by side, test that a meeting can use each path for audio, camera and screen sharing on the same server.

4.0 install docs

UDP range and firewall rules

Media traffic depends on UDP ports 16384 to 32768, and BigBlueButton also needs TCP ports 80 and 443 reachable. Confirm that every firewall, security group and NAT rule between users and the media server allows the UDP range before you change anything, because a blocked range can show up as silent audio or video failures. If you run TURN for users behind restrictive firewalls, check its ports as well. Ask your network team to confirm the rules on both inbound and outbound paths.

Network interface filtering

The default LiveKit server decides which network interfaces it advertises to clients, and the livekit.yaml file is where you filter them. Confirm which addresses the server publishes before you switch a media type, since a private or wrong interface can send clients to an address they cannot reach. Record the interface names and addresses on the host, then join a test meeting from inside and outside your network to confirm the media path. Note each change in your change record so you can roll it back.

Capacity under load

Test the path you choose at the concurrency you expect, with cameras and screen shares running, and watch CPU, memory and bandwidth on the media host during the run. The install documentation lists minimums for one 4.0 server: 8 CPU cores with high single-thread performance, 16 GB of RAM with swap and 250 Mbit/s symmetrical bandwidth. Treat those figures as a floor for testing and size from your own results. Ask the BigBlueButton project whether it publishes capacity figures for the path you choose before you plan from any figure.

Front end compatibility

Greenlight, LTI and Scalelite each control how users reach a meeting, so a switch that works on one server may not carry through every front end you run. Confirm which front end sends users into meetings, whether bbb-install.sh installed Greenlight or LTI support on the same server, and whether Scalelite routing sends meetings only to servers that run the new path. Test a join from each front end after the change. For Greenlight v3, check its external authentication settings too, since sign-in and meeting access both depend on them.

Greenlight external authentication

What buyers ask before changing media servers

Can our internal team configure LiveKit and media servers in BigBlueButton 4.0 alone?

Often yes, if your team already runs Linux servers and understands how BigBlueButton media traffic reaches users. The edits are configuration: network interface filtering in livekit.yaml, then switching audio, camera or screen sharing between the default LiveKit server and FreeSWITCH or mediasoup. The difficulty lies in what those edits touch. Interface filtering decides which addresses media uses, so it interacts with NAT, firewall rules, the UDP media range and TURN. A team without that background should read the BigBlueButton install docs for the 4.0 baseline and test on a staging server first. If staff time or network experience is short, a fixed-scope engagement can take this work, with scope, deliverables and timelines agreed in writing before work starts.

What drives the cost and effort of changing media servers in BigBlueButton?

The main drivers are the number of hosts, the network topology, the number of media types you change, and the size of the test scope and change windows. Each host needs its own interface filtering and verification, so a multi-server deployment multiplies both the configuration and the tests. Topology matters most when servers sit behind NAT, have several interfaces, or serve users through TURN, because each path needs its own call test. Switching audio, camera and screen sharing separately adds a test case for each. Change windows add effort when work must happen outside business hours or in staged rollouts. The configuration itself is one-time work, but retesting recurs after upgrades, certificate changes or network changes. Most DeployOpen engagements are fixed-scope, so the cost follows the written scope.

How long does changing media servers in BigBlueButton 4.0 take?

Duration depends on how many servers change, how the network is laid out, how many media types switch, and how much testing and approval each change needs. Hands-on edits can be short compared with test rounds, maintenance windows and sign-off, and those steps often set the pace. No general duration applies to every environment, so ask for a timeline in the written scope before work starts. The timeline should name the staging tests, the production window and the retest after any fix. If your organization needs a fixed date, state it in the request so the scope can plan around it. Also plan for the period after go-live, when you watch call quality under your actual class load and confirm that the changes hold.

What does a media server change project need from our team?

A media server change needs access, documentation and decisions from your side before work starts:

  • Host access: SSH and administrative rights on each BigBlueButton 4.0 server in scope, plus any TURN or load balancing host that the change affects.
  • Network diagrams: public and private addresses, NAT mappings, firewall rules and the UDP range that users reach.
  • Test users: accounts for each role and device type, including someone outside your network for remote checks.
  • Change approval: a named approver, an agreed maintenance window and a rollback plan your team accepts.

Also agree who owns the configuration files after handover. Missing diagrams slow the first test round, so collect them early.

Can BigBlueButton 4.0 switch audio and video back to FreeSWITCH or mediasoup?

Confirm this for your exact build before you plan around it. The topic covers switching audio, camera and screen sharing back to FreeSWITCH or mediasoup, but support can vary by build, so do not assume a path works until you see it working. BigBlueButton 4.0.0 was released on October 14, 2026, so check the BigBlueButton releases page for the version you install, along with the media server settings in the install documentation. Ask for a demonstration on a staging server that uses your own network layout, because a path that works on a simple network can behave differently behind NAT. Record each result as a test case before any production change.

What should a written quote for media server changes include?

Ask for a written quote that lists each item in scope, so you can compare it with your own plan. Include the hosts and their roles, the media types to be switched, the network review covering NAT, firewall rules and TURN, the test plan with named cases, test users and pass criteria, the change window and rollback steps, and the files and test record you receive at the end. Also ask what is excluded, such as front ends, recordings or a new TURN server, and how a retest after a failed round is handled. Ask whether ongoing support or a retainer covers later upgrades. DeployOpen does not publish a price list, and a quote follows from the written scope, so a clear scope produces a clearer quote.

How do we test call quality after changing BigBlueButton media servers?

Test calls under the conditions your users have, then repeat the same tests after every change. Cover audio, camera and screen sharing separately, since each one can follow a different path after you switch it. Include participants on your internal network, remote users behind NAT or restrictive firewalls, and users who connect through TURN. Use several participants in one meeting to see how media behaves in a multi-party call. Keep logs from each test session and compare them with the results from before the change. Agree pass criteria before the first test, so the team does not judge results after the fact. After each firewall change, confirm that the TCP and UDP ports listed in the install documentation remain reachable.

How DeployOpen scopes and tests media server changes

DeployOpen plans and implements the media server layer of BigBlueButton 4.0 inside your own infrastructure, from the default LiveKit setup and interface filtering in livekit.yaml to any move back to FreeSWITCH or mediasoup. Each change is scoped in writing, tested for call quality before and after, and documented so your operators can run it.

How we scope

  • The written scope names which audio, camera and screen sharing paths stay on LiveKit and which move back to FreeSWITCH or mediasoup.
  • Scope covers the network interfaces to include or exclude in livekit.yaml, based on your server addressing and firewall rules.
  • Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we build

  • Interface filtering in livekit.yaml is configured on the media host and checked against each network path before go-live.
  • Audio, camera and screen sharing move back to FreeSWITCH or mediasoup one media type at a time, so a fault traces to one change.
  • Changes are tested on a non-production BigBlueButton 4.0 server before they reach live meetings.

How we hand over

  • Handover includes the final livekit.yaml, the FreeSWITCH or mediasoup settings and a record of each change.
  • Call quality test results before and after each change are documented, so your operators can compare future runs.
  • Operators receive a runbook for reverting a media path to its previous setting if call quality drops.

How we support

  • Ongoing support can cover media server settings through future BigBlueButton upgrades, under a retainer.
  • Retainers can include repeat call quality testing after network, firewall or LiveKit configuration changes.
  • Confirm with your team which LiveKit and FreeSWITCH versions your environment runs before scoping starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.