Fixing Matrix calls stuck on connecting

A structured way to find why one-to-one Matrix calls ring but never connect on a self-hosted Synapse server, covering relay ports, TLS, IPv6 and NAT, and the browser tools that show what failed.

On this page

Why Matrix calls ring but stay stuck on connecting

When a Matrix call rings on both sides but never connects, the signaling works and the media does not. The two browsers can exchange call invitations through the homeserver, but they cannot find a network path to send audio and video to each other. Media path discovery is the step that usually fails. When either participant sits behind a NAT or a restrictive firewall, a direct connection is often impossible, so the call needs a TURN relay that both sides can reach. On a self-hosted server, that relay is a separate service you run, and it has to be reachable from the public internet, not only from inside your network. Fixing Matrix calls stuck on connecting usually starts by proving that a relay is configured, reachable and actually offered to the browsers.

The common failure points cluster in a few places. The TURN server may be unreachable because its listener ports or relay port range are blocked by a cloud security group, a host firewall or an upstream network policy. TLS listeners on the TURN endpoint may be missing, misconfigured or serving an expired certificate, which blocks clients that connect over TLS. IPv6 can cause trouble when a DNS name carries AAAA records that point to an address the relay does not serve, so a browser picks a candidate that can never succeed. Shared secret mismatches between the TURN server and the homeserver settings also produce calls that ring and then stall. Check these in order, starting with the settings the homeserver hands to clients.

Troubleshoot in-house when the problem is a single known setting, such as a mismatched secret or a blocked port that your team controls and can test with a browser. Bring in help when calls fail only for some networks, when the fault sits across cloud networking, DNS, certificates and the homeserver at once, or when you must show evidence for an internal review. Start with the browser tools: chrome://webrtc-internals in Chrome or about:webrtc in Firefox shows the candidates each side gathered. A working setup shows at least one relay candidate. If you see none, the relay is the problem, not the client. The Synapse TURN setup guide lists the settings to compare against your configuration.

How a one-to-one call finds a media path

The call starts as signaling through the homeserver, where the two clients exchange their ICE candidates. Each browser then tests direct paths first. If none succeed, both clients reach the TURN listener and media flows through the relay. When a call rings but never connects, check whether the relay candidate appears in webrtc-internals or about:webrtc, since its absence points to a TURN listener, port or IPv6 problem.

Signaling runs through Synapse, while media takes a direct path or the TURN relay.

What a working call needs from the network

A Matrix call uses two different paths, and most stuck calls fail on the second one. Signaling is the exchange of call invitations, answers and connection details between the two clients, and it travels through the homeserver as ordinary room events. Because the homeserver carries that exchange, the call can ring, show a connecting state and even display remote tiles without any media having moved yet. The media itself, the voice and video packets, has to reach the other side over a separate path. In a one-to-one call, that path is either a direct connection between the two browsers or, when no direct route can be negotiated through NAT or a firewall, a relay through a TURN server. Your homeserver does not carry the media in that case, so a healthy homeserver alone does not prove calls will connect.

This split explains why a call can look healthy in the interface while no audio or video flows. The client may report that the other party is ringing or joining while the ICE negotiation behind it never completes. The Synapse TURN documentation expects a working setup to show at least one relay candidate, which is a route through your TURN server, in the connection diagnostics that browsers expose. If only host or server-reflexive candidates appear and no relay candidate is present, the TURN server is not reachable or not accepting the client's credentials from that network. Check the candidate list in chrome://webrtc-internals or about:webrtc before changing anything else. The Synapse TURN guide is the reference for what a working configuration should look like.

Treat the TURN settings in the Synapse documentation as the baseline and confirm the exact values in your own deployment. Ask the team that runs your TURN service which ports, relay range and shared secret it uses, and confirm that Synapse is configured with the same URIs and secret. Confirm that the relay ports are open from the networks where your users sit, not just from the server's own subnet. Record the candidate types you see from a test client on each network segment you support, so that a later change in firewall policy or DNS can be compared against a known good result.

Which failure fits which symptom

This table matches what a caller sees on a stuck Matrix call to the most likely cause and the first check to run. Read it from the left column, find the symptom closest to what users report, then work down the cause column in the order listed. Start with the cheapest check, since several symptoms share a cause.

SymptomLikely causeFirst check
No ringing at allCall event not reaching the other user, or the homeserver rejecting the call inviteConfirm both users are on the same homeserver or federate correctly, then check the Synapse log for the invite event
Ringing but no mediaTURN port or relay range blocked by a firewall or cloud security groupOpen chrome://webrtc-internals or about:webrtc and look for at least one relay candidate in the ICE stats
Ringing but no mediaTLS listener or certificate problem on the TURN or TURNS endpointTest the TURNS port from outside the network and confirm the certificate chain is valid and trusted by the browser
One-way audioRelay candidate missing on one side, often a NAT that rewrites addresses unpredictablyCompare the candidate pairs on both clients and confirm each side can reach the relay address on the relay range
Works on one network onlyNAT hairpin or routing problem when both users sit behind the same public addressTest one caller from outside the office network and compare the candidates selected in each case
Works only on IPv4AAAA records advertised for the TURN host while the server or network cannot serve IPv6 correctlyCheck DNS for AAAA records on the TURN hostname and remove them if Chrome picks an unreachable IPv6 address
Connects in Firefox but not ChromeChrome preferring an unreachable IPv6 candidate from the AAAA recordInspect the Chrome candidate list in webrtc-internals and compare it with the Firefox candidates

How to diagnose a stuck call step by step

This sequence moves from the network outside in, so you find out whether the TURN server, the Synapse configuration or the client's connection path is failing before you change anything. Each step ends with a pass or fail check you can record.

  1. Confirm the TURN ports answer from outside

    From a host outside your network, check that the TURN listening ports and the TLS endpoint accept connections. Your network or firewall engineer runs the test, using the ports your TURN server is configured to listen on and the relay range it allocates from. Test UDP and TCP separately, because a firewall may pass one and block the other. Pass: the TCP connection completes on every listening port and the TLS handshake succeeds on the TLS endpoint. Fail: a timeout or refused connection points to a firewall rule, a cloud security group or a listener bound to the wrong interface. Fix the path before you go further, because nothing downstream can succeed without it.

  2. Confirm the relay range is open

    Check that the UDP relay range used for media is open in both directions between the TURN server and the internet, and that the server's public address is the one it advertises. The network team usually owns this, and the TURN server's configuration file lists the range. Pass: a test from outside reaches the relay range and the server reports the same public IP the clients will see. Fail: a mismatch between the advertised address and the public address, or a closed range, means calls can connect to the signaling layer but never carry media. Ask your network team to confirm this in writing, because a range that is open for one protocol may still be blocked for another.

  3. Check the Synapse TURN settings and credentials

    Ask the Synapse administrator to confirm that the homeserver hands clients the TURN URIs and time-limited credentials. The relevant settings are in the Synapse configuration, and the administrator can check what the server returns by requesting the TURN server endpoint with a logged-in test account. Compare the returned URIs with the hostname and ports you tested in the first step, and confirm the shared secret matches the TURN server. Pass: the response lists the expected URIs and a credential that is valid for the TURN server. Fail: an empty list, a hostname that does not resolve, or a mismatched secret explains why clients never get a relay. Record the response so you can compare it after each change.

  4. Check IPv6 records and NAT routing

    Look up the DNS records for the TURN hostname, including any AAAA record. If the TURN server does not serve IPv6 on the same path, a client that prefers IPv6 can fail while IPv4 works. The Synapse TURN documentation suggests removing AAAA records if Chrome is confused by IPv6, so use that as a targeted test in a staging zone before you change production DNS. Also confirm that the TURN server's public address is the address the clients see behind their NAT. Pass: the hostname resolves to addresses the TURN server actually listens on, for every family it publishes. Fail: an AAAA record pointing nowhere, or a private address advertised publicly, is a common reason a call rings and never connects.

  5. Place a test call from a clean browser

    Sign in to Element Web or another client with two test accounts on different networks, then place a one-to-one call from one to the other. Use a browser profile with no extensions that alter WebRTC, and record the time and the networks used. Your test lead runs the call, and a second person confirms whether the remote side rings, answers and shows media. Pass: the call connects and both sides hear and see each other. Fail: a call that rings and then times out, or connects with no media, sends you back to the TURN checks, so note which side failed and on which network.

  6. Inspect candidates in the browser tools

    Open chrome://webrtc-internals in Chrome or about:webrtc in Firefox during a test call and find the ICE candidate pairs for the connection. Your engineer checks whether the list includes at least one relay candidate, which means the call is using your TURN server. Compare the candidate types, addresses and selected pair with the results from the earlier steps. Pass: the selected pair includes a relay candidate, and the connection state moves to connected. Fail: only host or server reflexive candidates appear, or every relay candidate fails, which means the TURN server or its network path is still blocking media. Save the capture so you can compare it with later attempts.

  7. Record the result and retest after each change

    Write down which check failed, the single change made, and the new result, so one fix does not hide another problem. Repeat the failed step after each change rather than running the whole sequence again each time. Confirm the final state by placing the test call from two different networks and checking that the selected candidate pair includes a relay candidate. Pass: calls connect from both networks and the candidate capture matches what you expected. Fail: if the same step keeps failing after one change, return to the earlier check that owns that layer, because the cause is often upstream of the symptom.

Reading chrome://webrtc-internals and about:webrtc

Chrome, Chromium and other Chromium-based browsers expose WebRTC internals at chrome://webrtc-internals. Open this page in the same browser profile you use for the failing call, then start the call from another tab so the peer connection appears in the list. Each connection shows its statistics, the ICE candidates gathered, and the candidate pairs that were checked. Look at the connection state history as well as the final state, because a call that sits on checking for a long time points to a different cause than one that moves quickly to failed.

  • Candidate pairs: Find the selected or succeeded pair. Its local and remote candidates show which path the media actually took.
  • Relay candidates: A working setup shows at least one candidate of type relay. If you see only host and srflx candidates, the TURN server is not being reached or not being offered.
  • Connection states: Note whether the ICE connection state stays on checking, moves to failed, or reaches connected.
  • IPv6 addresses: If candidates include IPv6 addresses that never succeed while IPv4 relay candidates exist, the IPv6 path is likely the problem.
  • Export: Use the download option on the connection entry to save the dump before you close the tab.

Check that at least one relay candidate appears in a working connection and that the selected pair reaches a connected state.

When IPv6 records and NAT routing break calls

If calls ring but never connect and the TURN logs show no relay activity, check whether the client is trying IPv6 paths that your network cannot route. The Synapse TURN documentation notes that Chrome can be confused by IPv6, and suggests removing AAAA records as a test. Treat that step as diagnosis, not a fix. Removing an AAAA record hides a symptom: if the server is reachable over IPv6 for other users, you have made the service worse for them, and if the record is removed in a zone shared with other services, you have changed their behavior too. Before editing any DNS record, confirm the change with your network and DNS owners, record the current values so you can restore them, and agree on who checks the result and when the record is put back or kept.

Use chrome://webrtc-internals or about:webrtc during the test to see which candidate pairs Chrome selected. A working setup should show at least one relay candidate. If the selected pair uses an IPv6 address that your TURN server or firewall does not serve, the cause is address selection, not Synapse. If only host or server-reflexive candidates appear and no relay candidate is gathered, the TURN server may be unreachable from the client's network, which points back to the TURN listener and firewall rules covered elsewhere on this page.

NAT routing causes a different failure. When a client and the TURN server sit behind the same router, the client may send traffic to the public address of the TURN server and expect it to return through the NAT, which many home and office routers do not support. This is hairpinning, and it is common when internal users connect to a public hostname that resolves to an external address. Ask your network team whether the router supports hairpin NAT, or whether internal DNS can return the internal address of the server for internal clients. Test one call from inside the network and one from outside, because a call that works externally and fails internally usually points to hairpinning or split-horizon DNS rather than the relay itself.

Security trade-offs when opening call ports

Making calls connect means opening relay and TLS paths to the internet, and each opening widens what an attacker can reach. The cards below cover the decisions that keep those openings narrow: relay range, credential handling, firewall scope, certificate upkeep and what gets logged.

Limit the relay port range

A TURN server relays media on a range of UDP ports, and every port in that range is reachable from outside. Set a bounded min-port and max-port sized for your expected concurrent calls, rather than leaving the default wide open. Confirm the range with your TURN software's documentation, then check that your firewall passes only that range and the TURN listening ports. Recheck the range after any change in call volume.

TURN setup guide

Protect the shared secret

Synapse issues short-lived TURN credentials by signing them with a shared secret that it holds in common with the TURN server. Anyone with that secret can mint credentials and use your relay for traffic of their choice. Keep it in a secrets store or a root-readable file, never in version control or a world-readable config, and rotate it through a planned change that updates both sides at once.

Firewall the ports you do not need

Only expose what clients and federated servers actually reach. Confirm which listeners are public (TURN, the TLS listener for the homeserver and the federation listener) and block everything else, including Synapse's internal replication and admin ports. The Synapse configuration manual recommends firewalling the federation listener when federation is restricted, so review that port separately from the client listener.

Renew TLS certificates on schedule

Calls need valid certificates on the TURN TLS listener and on the homeserver's public hostname. An expired certificate causes connections to fail in ways that look like the original fault, so the problem returns after it seems fixed. Automate renewal, monitor expiry dates on every name the clients use, and test the reload path so the TURN and reverse proxy pick up new certificates without a restart window.

Log call errors without content

Logs from TURN and Synapse should record failed allocations, rejected credentials and handshake errors, which is enough to diagnose a stuck call. They should not record message bodies or media. Decide the retention period for these logs with your privacy team, restrict who can read them, and check that debug logging is turned off after troubleshooting so verbose output does not persist.

Review exposure after each change

Each fix for a stuck call, such as opening a new port, changing the relay range or adding an IPv6 address, changes what is reachable. Record the before and after state of firewall rules and listeners, and rerun a relay candidate test from outside your network. Ask your security team to review the change against your current exposure list before it goes live.

Questions teams ask before fixing call connectivity

How long does diagnosing a Matrix call that never connects usually take?

Diagnosis length depends mostly on how many layers are involved and how well the failure is reproduced. A single cause, such as a blocked relay port or a stale AAAA record, can be confirmed quickly once a test call is captured in the browser. Cases that mix TURN, TLS listener, reverse proxy and NAT routing take longer because each layer needs its own check. The factors that move the timeline are access to the DNS zone, the firewall and cloud security group change process, whether a test account pair can call on demand, and whether logs from the homeserver, TURN server and reverse proxy are retained for the failed attempts. Ask any provider to scope the diagnosis as a fixed set of reproduced test calls with written findings before committing to a fix.

Can our own team diagnose and fix stuck calls without a partner?

Often yes, if the team already runs the Synapse server and has someone comfortable with DNS, TLS and firewall rules. The browser tools described in the Synapse TURN documentation, chrome://webrtc-internals in Chromium-based browsers and about:webrtc in Firefox, show which candidate pairs were gathered and whether any relay candidate appeared. Your team needs access to the TURN host, the network path between it and the clients, and permission to change firewall policy. Where those skills or approvals sit with different groups, a partner can coordinate the checks and produce written evidence. Ask whether you want a one-time fix, a runbook your staff will execute, or ongoing support.

What information should we gather before asking for help with call connectivity?

Collect enough that the reviewer can reproduce the failure without guessing. Useful inputs include:

  • The server_name, the public hostnames for the homeserver, TURN server and any reverse proxy, and the current DNS records, including AAAA records
  • The relevant sections of homeserver.yaml covering turn_uris, turn_shared_secret handling and listener configuration, with secrets redacted
  • The TURN server configuration, its listening ports and its relay port range
  • Browser webrtc-internals or about:webrtc exports from a failed call on both sides, plus the time of each attempt
  • Firewall and cloud security group rules for the relevant ports, and whether the clients sit behind corporate or carrier NAT

Redact all secrets before sharing anything.

Is the fix usually a configuration change or network work?

It is usually one or the other, but it is often both. Many failures come from configuration: a TURN URI that points to the wrong host, a shared secret that does not match between Synapse and the TURN server, or a DNS record that sends IPv6 traffic to an address that cannot relay. Other failures need network work, such as opening the TURN listening ports and the relay range in a firewall or security group, or correcting NAT routing so the relay address is reachable. The browser output tells you which kind of fix you need. If no relay candidate appears at all, the problem is almost always reachability or credentials. If a relay candidate appears but media still fails, check the path between the clients and the relay address. Confirm the exact settings against the Synapse TURN guide for your version.

How do we avoid opening ports more broadly than the calls need?

Open only the TURN listeners and the relay range that the TURN server actually uses, and restrict the source addresses where your client population allows it. Keep the relay range as narrow as your concurrency needs, since each active relayed call uses ports from it. Do not expose the Synapse admin or replication endpoints to fix a call problem, and do not widen the federation listener for a calling issue. Confirm each rule against the TURN server configuration rather than copying a range from a forum post. Record every change so it can be reverted, and retest with the same browser capture afterward to confirm the narrower rule still produces a relay candidate.

What changes when calls run on Element Call instead of one-to-one TURN?

Element Call uses a different path, so the diagnosis changes. One-to-one calls rely on Synapse's TURN settings and a TURN server that clients reach directly. Group calls through Element Call depend on a LiveKit service, an authorization service that issues tokens, and the Synapse settings that let clients discover them. That means a stuck group call may fail at the authorization step, at the LiveKit WebRTC ports, or at a reverse proxy path, even when one-to-one TURN works. Start by identifying which feature failed, then check its own service and routes. The sibling guides on Element Call settings and the MatrixRTC authorization service cover those components in detail. Confirm the current requirements against the Synapse and Element Call documentation for your release before changing anything.

Where the official TURN guidance sits

The Synapse TURN how-to is the primary reference for setting up the relay that one-to-one calls depend on, and for checking which client-side signals show whether a relay is being used. Start there before you change firewall rules, DNS records or client settings, because the document describes the expected Synapse side of the relay setup and the diagnostic steps that follow from it. Treat it as the baseline for the rest of this troubleshooting path, not as a substitute for checking your own environment.

Before you apply any key from that guide, confirm it against the Synapse release you run. Configuration keys, defaults and the recommended steps can change between releases, and the upgrade notes are the place to check for changes that affect calling. Note the Synapse version in your change record, read the configuration manual for that version, and compare each turn_* setting in your homeserver.yaml with the names the documentation uses. If a key in the guide does not appear in the manual for your version, stop and confirm the correct replacement with your Synapse release notes rather than guessing.

How DeployOpen scopes and fixes call connectivity

DeployOpen approaches stuck Matrix calls by first reproducing the failed call and collecting what the browser and server report, then fixing the specific layer that breaks. The work runs inside your own infrastructure, so TURN, TLS, DNS and firewall changes are made and documented by the team that will operate them.

How we scope

  • Written scope names the calling paths in use: one-to-one calls, Element Call groups, or Jitsi widgets.
  • We confirm your Synapse version, server name, delegation, and where TURN and reverse proxy run.
  • Scope lists the network zones, firewalls and cloud accounts we may need to change, with owners named.

How we build

  • We reproduce a failing call and capture chrome://webrtc-internals or about:webrtc output from both sides.
  • We check TURN listeners, TLS certificates, relay port ranges and AAAA records against the observed candidates.
  • Each change is applied one at a time in your environment and retested until a relay candidate appears.

How we hand over

  • Deliverables include a written record of each root cause, the configuration changed, and the test used to confirm it.
  • Runbooks cover browser tests, log locations and the checks to repeat after firewall or certificate changes.
  • Your team walks through a test call on each client you support before the engagement closes.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and retesting after Synapse or TURN upgrades are available as a retainer.
  • Retainer scope, response expectations and quote details are confirmed in writing for your environment.

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.