Firewall rules and encryption (DSM)

Use this guide to diagnose connectivity problems between a device and DSM. Most connection failures trace back to blocked outbound traffic, DNS/NTP issues, or overly restrictive network filtering.

Quick Checklist

Before digging deeper, confirm the basics:

1. Check Core DSM Firewall Rules

DSM requires the following outbound rules. If any of these are blocked, the client will fail to connect.

Address Protocol Port Purpose Symptom if blocked
api2.kuori.com TCP 443 HTTPS REST calls Client can't reach API, requests time out or fail
api.kuori.com TCP 443 WebSocket (WSS) Client connects briefly but loses real-time/live connection
DNS servers UDP/TCP 53 Name resolution Client can't resolve kuori.com hostnames at all
NTP servers UDP 123 Time synchronization TLS handshake fails or auth errors due to clock drift

How to check: Test outbound connectivity from the device/network to each address and port (e.g. curl, telnet, or a port-check tool). If DNS resolution fails, verify port 53 is open and a working DNS server is reachable. If TLS handshakes fail intermittently, check the device clock against NTP.

2. Check MDM-Specific and android rules

The MDM solution in use has its own required firewall openings, separate from the DSM rules above. If the MDM agent itself can't connect, DSM enrollment/management may also fail.

Also confirm outbound access is allowed per Android Enterprise requirements, since MDM device management relies on Google-managed services:

3. Rule Out Overly Restrictive Network Filtering

A common root cause of intermittent or unexplained connection failures is IP-based whitelisting.

IP address–based whitelisting is not a viable approach for Android-based devices, and is a frequent cause of connectivity problems that "used to work" and then broke.

Why this happens:

If you suspect this: Check whether any firewall/proxy rule is restricting outbound traffic to a specific IP range rather than by port/protocol. If so, replace it with rules based on the ports and domains above, and allow general outbound internet access rather than an IP allowlist.

4. Check General Network Configuration

5. Check Encryption / TLS Requirements

6. Check Third-Party Applications on the Device

If other applications on the device also seem to have network issues, they may have their own port/endpoint requirements that are separate from DSM's.

Example — TeamViewer:

Type Port(s)
Outbound TCP 5938 (primary), 443, 80
Optional UDP 5938

TeamViewer (and similar apps) use dynamic cloud servers, so IP whitelisting will likely break them too. Evaluate each third-party application individually and allow its required outbound ports rather than restricting by IP.

Summary: Most Likely Causes, In Order

  1. A required port (443, 53, or 123) is blocked outbound.
  2. IP-based whitelisting is in place and has gone stale or is blocking dynamic Google/cloud IPs.
  3. MDM-specific firewall rules haven't been applied (see internal KMM link above).
  4. Device clock is out of sync (NTP blocked), breaking TLS handshakes.
  5. Device is on the wrong network segment/VLAN with different rules applied.

Created 2026-09-16 09:43:44 UTC
Updated 2026-09-16 10:36:14 UTC