×

UniFi Video will reach end-of-support on December 31st, 2020.

For more information, please refer to the official community notice.

UniFi Video - Ports Used

Overview

This article lists the ports used for the UniFi Video line, for both insecure (http), and secure (https) connections.

NOTES & REQUIREMENTS:
This article only enables access directly by the NVR's IP address, or a domain name if one has been configured. If the NVR will be accessed by cloud, it is necessary to allow the NVR to communicate outbound on any UDP port to establish WebRTC connections.

Table of Contents

  1. Port List
  2. How to Configure Custom Ports
  3. Utilizing Ubiquiti Cloud
  4. Related Articles

Port List

Back to Top

These are the ports used by UniFi Video. Keep in mind the following about the Direction column in the tables below:

  • From camera to NVR: Ports used if cameras and Network Video Recorder (NVR) are on a different subnet or separated by the internet. Please note that when Purpose states "NVR Side", the port must be made available externally to the NVR; and when it states "Camera Side", the port must be made available externally to the camera.
  • From NVR to camera: Ports used will need to be made available if the camera is on another subnet, or separated by the internet.
  • From client to NVR: Ports used between the client and NVR when attempting to view streams and/or recordings from a separate subnet or over the internet.

When Accessing the NVR from a Remote LAN:

Back to Top

Port

Type (TCP/UDP)

Direction

(what device to forward to)

Purpose

7080 TCP From client to NVR
HTTP Web UI & API
7443 TCP From client to NVR
HTTPS Web UI & API
7445 TCP From client to NVR
Video over HTTP***
7446 TCP From client to NVR
Video over HTTPS***
7447 TCP From client to NVR
RTSP via the controller
10001 UDP

From NVR to camera

NVR Discovery (Will not work over WAN)

When Cameras are Located on a Remote LAN:

Back to Top

Port

Type (TCP/UDP)

Direction
(what device to forward to)

Purpose

6666 TCP From camera to NVR
Inbound Camera Streams (NVR Side)*
7004 UDP

From NVR to camera

UVC-Micro Talkback (Camera Side)**
7442 TCP

From camera to NVR

Camera Management (NVR Side)* (as of v3.8.0+)

*NVR Side: Port must be made available externally to the NVR

**Camera Side: Port must be made available externally to the Camera

***Mobile Specific: Port must not be changed for Mobile app to function properly

How to Configure Custom Ports

Back to Top

WARNING:Changing the app.https.port is currently not supported, as there is no option within the Camera Web Interface to define a custom port.
  1. To change port values, locate system.properties in the following directory:
  • Windows: C:\ProgramData\unifi-video\data
  • Linux: /usr/lib/unifi-video/data
  • Open system.properties with a text editor.
  • "Uncomment" the desired keys by deleting the number sign (#), then change the port number. Lines that have a number sign (#) are viewed as comments and are ignored by the system.
    # unifi-video v3.9.12
    is_default=false
    uuid=...
    # app.http.port = 7080
    # app.https.port = 7443
    # ems.liveflv.port = 6666
    # ems.livews.port = 7445
    # ems.livewss.port = 7446
  • Save and close system.properties.
  • Restart the UniFi Video service.
    • Windows: via System Tray/Notification Area icon
    • Linux: sudo /etc/init.d/unifi-video restart

    Utilizing Ubiquiti Cloud

    Back to Top

    In order to make use of Ubiquiti Cloud, the following firewall rules must be implemented:

    • Allow all UDP from LAN > WAN (to establish outbound connections to the other peer)
    • Allow Solicited Inbound UDP Traffic from WAN > LAN
    • Allow Outbound TCP connections over port 8848*
    NOTE:*Client side: this only applies if there are outbound restrictions on the browser or mobile devices' network.

    Related Articles

    Back to Top

    UniFi - system.properties File Explanation

    Was this article helpful?
    14 out of 44 found this helpful