If your network restricts outbound traffic, allow the following RealtimeKit domains and ports. These requirements apply to Web Core SDK 2.1.0 or later and Web UI Kit SDK 2.1.0 or later.
Allow these domains for RealtimeKit SDKs:
| Domain | Purpose |
|---|---|
api.realtime.cloudflare.com |
Handles requests from RealtimeKit SDKs |
r2.cloudflarestorage.com |
Stores and retrieves chat messages |
If your application uses RealtimeKit Web UI Kit, also allow this domain:
| Domain | Purpose |
|---|---|
rtk-assets.realtime.cloudflare.com |
Serves Web UI Kit assets, including speaker-test audio |
Applications that use only RealtimeKit Core do not require the Web UI Kit asset domains.
If your application uses the Whiteboard plugin, also allow whiteboard-v2.plugins.realtime.cloudflare.com, which serves the whiteboard and syncs its boards.
If you use Web Core SDK or Web UI Kit SDK earlier than 2.1.0, also allow api-silos.realtime.cloudflare.com, da-collector.realtime.cloudflare.com, location.realtime.cloudflare.com, socket-edge.realtime.cloudflare.com, and rtk-uploads.realtime.cloudflare.com.
RealtimeKit uses the Cloudflare Realtime SFU for media connections. Allow the following Session Traversal Utilities for NAT (STUN) and Traversal Using Relays around NAT (TURN) traffic:
| Protocol | Domain | Primary port | Alternate port |
|---|---|---|---|
| STUN over UDP | stun.cloudflare.com |
3478/udp |
53/udp |
| TURN over UDP | turn.cloudflare.com |
3478/udp |
53/udp |
| TURN over TCP | turn.cloudflare.com |
3478/tcp |
80/tcp |
| TURN over TLS | turn.cloudflare.com |
5349/tcp |
443/tcp |
Allow the primary and alternate ports where possible. Do not rely only on 53/udp, because Internet service providers and browsers can block this port.
For protocol details, refer to Service address and ports.
If your network policy supports wildcard domains, you can use *.realtime.cloudflare.com instead of the listed realtime.cloudflare.com domains.
Individual domain rules are recommended because they restrict access to only the required services. If you use the wildcard domain, you must still allow r2.cloudflarestorage.com, stun.cloudflare.com, and turn.cloudflare.com separately, because the wildcard does not cover them.
Run the RealtimeKit pre-call test ↗︎ to verify your device can reach the required services.