Skip to content
InstagramYouTubeFacebook

Tutorial

Required Ports for UniFi

Full reference of UDP and TCP ports used by UniFi Network, Protect, Connect, Access, and Remote Management — plus how to change defaults.

Summary This reference lists every default UDP and TCP port used by UniFi Remote Management, UniFi Network, UniFi Protect, UniFi Connect, and UniFi Access. It’s the document you want when self-hosting a UniFi Network server on Windows, macOS, or Linux, when running behind a third-party gateway, or when a hardened firewall is dropping traffic between the console and the rest of the deployment. The last section covers how to change default ports on a self-hosted Network server through system.properties.

Which ports does UniFi require?

UniFi is a family of applications — Remote Management, Network, Protect, Connect, and Access — and each one uses a specific set of UDP and TCP ports to talk to devices, to the cloud, and to client browsers. In typical deployments with UniFi gateways, the right ports open automatically through the integrated firewall. Administrators using third-party gateways, self-hosted Network servers on Windows/macOS/Linux, or hardened firewalls must allow these ports explicitly or the corresponding services break in subtle ways — failed device adoption, broken Guest Portal redirection, video streams that don’t render, or the console refusing to remote-access from outside.

The tables below group every port by UniFi application. Direction is given from the perspective of the UniFi Console or self-hosted server: Ingress means traffic arriving at the server, Egress means traffic leaving toward an external service, Both means the port handles bidirectional flows.

Remote Management ports

Remote management lets administrators reach UniFi devices over the internet without exposing the console directly. These ports support remote access, DNS resolution, and secure communication.

Protocol & portDirectionUsage
TCP/UDP 53BothDNS lookups for remote access, updates, and Guest Portal redirection (shared with Network)
UDP 123EgressNTP time sync — required for secure connections
UDP 3478BothSTUN service for remote access (shared with Network)
TCP 443BothRemote Access service and web GUI/API (shared with Network)
TCP 8883EgressRemote Access service
TCP 5349IngressRemote access support

UniFi Network ports

UniFi Network is the central platform for UniFi switches, routers, and Wi-Fi access points. These ports handle device adoption, controller communication, and management.

Protocol & portDirectionUsage
TCP/UDP 53BothDNS for Guest Portal redirection and updates
UDP 3478BothSTUN for device adoption and communication
TCP 8080IngressDevice and application communication
TCP 8443IngressApplication GUI/API on the UniFi Console
TCP 8880–8882IngressHotspot portal redirection (HTTP)
TCP 8843IngressHotspot portal redirection (HTTPS)
TCP 8444IngressSecure portal for Hotspot
TCP 6789IngressUniFi mobile speed test
TCP 27117IngressLocal database communication
UDP 10001IngressDevice discovery during adoption
UDP 1900IngressLayer-2 discovery (“Make application discoverable on L2 network”)
UDP 5514IngressRemote syslog capture
TCP/UDP 22BothSSH access (disabled by default)
TCP 443BothApplication GUI/API via web browser

UniFi Protect ports

UniFi Protect handles video streaming and device communication for cameras and network video recorders.

Protocol & portDirectionUsage
TCP 7441IngressOutgoing RTSPS streams
TCP 7442BothWebSocket server for device communication
TCP 7443BothREST API (HTTPS)
TCP 7444BothWebSocket server for camera communication
TCP 7445IngressOutgoing Protect streams
TCP 7447IngressOutgoing RTSP streams
TCP 7550IngressCamera streams
TCP 7552BothSSL camera connections
TCP 7888BothTCP bridge

Stacked NVRs (MSR/MSP)

These ports are required only when physically stacking network video recorders. Open them in addition to the base Protect ports above.

Protocol & portDirectionUsage
TCP 7446BothProtect streams between consoles
TCP 7451BothProtect streams between consoles
TCP 7600BothProtect application communications

UniFi Connect ports

UniFi Connect integrates with Lutron lighting processors and other automation devices.

Protocol & portDirectionUsage
UDP 2647IngressLutron Processor discovery (HomeWorks QSX, HomeWorks Wireless, RadioRA3)
UDP 5353IngressLutron Processor discovery (HomeWorks QS, RadioRA2)
TCP 18080IngressApplication GUI/API on the UniFi Console
TCP 18443BothWebSocket server for device communication (HTTPS)
TCP 18884BothMQTT server for device communication
TCP 18888BothInternal Lutron proxy between Lutron Processor and UniFi Connect

UniFi Access ports

UniFi Access manages door controllers and readers.

Protocol & portDirectionUsage
TCP 12812BothMQTT server for device communication
TCP 12442BothWebSocket server (UCP4) for device communication
TCP 12443BothHTTPS server for device communication
TCP 12445BothOpen API
TCP 12478BothWebRTC TURN server for device communication

Changing default ports on a self-hosted UniFi Network server

Default port assignments can be modified on self-hosted UniFi Network servers running on Windows, macOS, or Linux. UniFi Consoles (Cloud Keys, Dream Machines, or other embedded controllers) do not permit port changes.

  1. Shut down the running UniFi Network application.
  2. Open <unifi_base>/data/system.properties in a text editor.
  3. Add or modify the line for the port you want to change. For example, to change the shutdown port from 8081 to 8089, add unifi.shutdown.port=8089.
  4. Restart the UniFi Network application.

Make sure the modified line has no leading or trailing whitespace, no inline comments (the file ignores any line starting with #), and no stray characters — anything off-spec causes the change to be silently ignored and the default to persist. For broader management context across multi-vendor fleets that include UniFi alongside MikroTik, see our MikroTik NAT setup guide and the MikroTik DNS over HTTPS tutorial.

Take the next step

UniFi is excellent within its own ecosystem; in mixed fleets it sits alongside MikroTik routers, Intelbras OLTs, and other vendors that each carry their own port lists, their own management consoles, and their own remote-access models. MKController unifies that picture: one dashboard across UniFi, MikroTik, Intelbras, and other vendors, with discovery via SNMP, LLDP, and CDP and secure remote access through outbound tunnels — no per-site port forwarding required.

Start your free MKController trial