Skip to content

Required Ports for UniFi

Summary
This guide outlines the default UDP and TCP ports that power UniFi’s remote management, Network, Protect, Connect and Access services. It’s meant for self‑hosted deployments or environments with restrictive firewalls and covers how to change default ports on a UniFi Network server.

Overview

UniFi applications rely on specific network ports to communicate with devices, deliver remote management and provide services like the guest portal or video streaming. In typical deployments with UniFi gateways these ports are opened automatically. Administrators using third‑party gateways, self‑hosting or hardened firewalls should ensure the ports listed below remain accessible.

Remote Management

Remote management allows administrators to monitor and manage UniFi devices over the internet. The following ports are required to support remote access, DNS resolution and secure communication.

Protocol & PortDirectionUsage
TCP/UDP 53BothDNS lookups for remote access, updates and Guest Portal redirection; also used by UniFi Network
UDP 123EgressNTP time synchronization needed to establish secure connections
UDP 3478BothSTUN service used for remote access; also used by UniFi Network
TCP 443BothRemote Access service and web‑based GUI/API; also used by UniFi Network
TCP 8883EgressRemote Access service
TCP 5349IngressRemote access support

UniFi Network

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

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

UniFi Protect

UniFi Protect handles video streaming and device communication for cameras and network video recorders (NVRs). Ensure the following ports are open.

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)

The following additional ports are only required for physically stacked network video recorders. They should be opened in addition to the base Protect ports.

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

UniFi Connect

UniFi Connect integrates with Lutron lighting processors and other automation devices. These ports support device discovery, WebSocket communication and proxies.

Protocol & PortDirectionUsage
UDP 2647IngressLutron Processor discovery for HomeWorks QSX, HomeWorks Wireless and RadioRA3
UDP 5353IngressLutron Processor discovery for HomeWorks QS and 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 the Lutron Processor and UniFi Connect

UniFi Access

UniFi Access manages door controllers and readers. The following ports enable secure communication between devices and the server.

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 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 allow port changes.

  1. Shut down any running UniFi Network application.
  2. Locate and edit the system.properties file inside <unifi_base>/data/system.properties.
    • For example, to change the shutdown port from 8081 to 8089, add or modify the line unifi.shutdown.port=8089.
  3. Restart the UniFi Network application.

Ensure there are no extra spaces, comments (#) or stray characters on the modified line; otherwise the change will be ignored.


About MKController

Hope the insights above helped you navigate your Mikrotik and Internet universe a little better! 🚀
Whether you’re fine-tuning configs or just trying to bring some order to the network madness, MKController is here to make your life simpler.

With centralized cloud management, automated security updates, and a dashboard that anyone can master, we’ve got what it takes to upgrade your operation.

👉 Start your free 7-day trial now at mkcontroller.com — and see what effortless network control really looks like.