info_i_25x25.png Due to unforeseen weather conditions we are experiencing higher chat wait times. Remember you can also submit a ticket and one of our support representatives will get back to you as soon as possible. We apologize for the inconvenience.

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 you've configured one. If your intention is to access the NVR by cloud, you will need to allow the NVR to communicate outbound on any UDP port to establish WebRTC connections.
 
*These ports are for the Service itself. You'll want to forward these to your NVR.

Table of Contents


  1. Ports List
  2. How to Configure Custom Ports
  3. Related Articles

Ports List


Back to Top

These are the ports used by UniFi Video. Keep in mind the following about "direction":

  • Between camera and 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.
  • Between client and NVR: ports used between the client and NVR when attempting to view streams and/or recordings from a separate subnet or over the internet.
  • Via mobile apps: used in order to access UniFi-Video via the mobile apps for both secure connections (https) and insecure connections (http).

Port

Type (TCP/UDP)

Direction

Purpose

22 TCP Between Camera and NVR SSH (NVR Side)
6666 TCP Between Camera and NVR
Inbound Camera Streams (NVR Side)*
7004 UDP Between Camera and NVR
UVC-Micro Talkback (Camera Side)**
7080 TCP Between Client and NVR
HTTP Web UI & API
7080 TCP Via Mobile App
HTTP Web UI & API ( insecure)
7442 TCP Between Camera and NVR
Camera Management (NVR Side)* (as of v3.8.0+)
7443 TCP Between Camera and NVR
HTTPS Web UI & API (NVR Side)*
7443 TCP Between Client and NVR
HTTPS Web UI & API
7443 TCP Via Mobile App
HTTPS Web UI & API
7445 TCP Between Client and NVR
Video over HTTP
7445 TCP Via Mobile App
Video over HTTP ( insecure)
7446 TCP Between Client and NVR
Video over HTTPS
7446 TCP Via Mobile App
Video over HTTPS
7447 TCP Between Client and NVR
RTSP via the controller
10001 UDP Via Mobile App
NVR Discovery (local only, not WAN -> LAN)

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

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


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
  2. Open system.properties with a text editor.
  3. "Uncomment" the desired keys by deleting the number sign (#), then change the port number.
    # unifi-video v3.9.3
    app.controller.id=...
    app.controller.mode=master
    app.systemName=myNVR
    is_default=false
    timezone=America/Chicago
    uuid=...
    # app.http.port = 7080
    # app.https.port = 7443
    # ems.liveflv.port = 6666
    # ems.rtmp.port = 1935
    # ems.rtsp.port = 7447
  4. Save and close system.properties.
  5. Restart the UniFi Video service.
    • Windows: via System Tray/Notification Area icon
    • Linux: sudo /etc/init.d/unifi-video restart

Related Articles


Back to Top

UniFi - Explaining the system.properties File