---
title: "Use Ubiquiti UniFi cameras with a self-hosted NVR"
description: "How to record UniFi Protect cameras on your own Vigiora Server. Why UniFi cameras stream through the Protect console rather than on their own, how to turn on RTSP in Protect, the RTSPS and RTSP addresses and ports, and how Vigiora connects to the console."
url: https://vigiora.com/articles/unifi-camera-self-hosted-nvr
language: en
date: 2026-11-16
updated: 2026-11-16
tags: [how-to]
scenario: false
---

# Use Ubiquiti UniFi cameras with a self-hosted NVR

> How to record UniFi Protect cameras on your own Vigiora Server. Why UniFi cameras stream through the Protect console rather than on their own, how to turn on RTSP in Protect, the RTSPS and RTSP addresses and ports, and how Vigiora connects to the console.

UniFi cameras from Ubiquiti are well made, but they are built for one recorder: a UniFi Protect console (a Cloud Key, a Dream Machine, a UNVR or similar). Many people ask whether they can use them on their own, with another recorder. The honest answer: not on their own, but through the console. Protect can share each camera's stream over RTSP, and Vigiora Server can record and analyse that stream.

> **What you need**
>
> - UniFi cameras adopted by a UniFi Protect console. Current UniFi cameras have no ONVIF and no login of their own: the console manages them.
> - Admin access to Protect in a web browser.
> - A Vigiora Server on the same network as the console. See [Install on Linux](https://vigiora.com/docs/getting-started/install-linux).
>

## Before you start: turn on RTSP in Protect

1. **Open the camera in Protect**

   In the Protect web page, open the camera's settings. The setting is easiest to find in the web page; the phone app may not show it.

2. **Find the stream settings**

   Open **Advanced** and look for **RTSP** or **RTSP Stream**.

3. **Turn on a quality**

   Turn on **High**, **Medium** or **Low**. Each quality has its own link. Protect shows it next to the switch: copy it.

Menu names change between Protect versions. The link always points at the **console**, not the camera. You only need this step yourself when you add a camera by hand: the next Vigiora Server release turns RTSP on for you (see below).

## The stream addresses

Protect builds the link for you. It looks like this:

| Form | Address | Port |
| --- | --- | --- |
| Encrypted (RTSPS), as Protect shows it | `rtsps://192.0.2.10:7441/<token>?enableSrtp` | 7441 |
| Plain RTSP | `rtsp://192.0.2.10:7447/<token>` | 7447 |

`192.0.2.10` stands for your console's address and `<token>` for the camera's own code from Protect. There is no user name or password in the link: the token is the key, so treat it like a password.

The ports come from Ubiquiti's own list of UniFi ports: **7441** for outgoing RTSPS streams and **7447** for outgoing RTSP streams. The plain form is the encrypted link with `rtsps` changed to `rtsp`, the port changed to 7447 and `?enableSrtp` removed. The token stays the same.

![A text card summarising the UniFi stream addresses and ports from this page](https://vigiora.com/articles/img/unifi-camera-self-hosted-nvr/cheat-sheet.webp)

*The UniFi stream addresses and ports on one card. A text summary of this page, not a screenshot.*

## What Vigiora finds for you, and the manual way

Vigiora's network scan sees UniFi devices by their Ubiquiti hardware address. That address covers all UniFi gear (access points, switches, consoles), so a UniFi camera shows up as a Ubiquiti device rather than a ready-to-add camera. Vigiora connects to your UniFi Protect console, not to each camera. In **Add camera**, give the console's address and a local UniFi account without two-factor sign-in. The next Vigiora Server release lists every camera on the console; tick the ones you want and choose **Add**. If RTSP is off for a camera, Vigiora turns it on. If your account may not change camera settings, Vigiora tells you which camera to turn it on for in Protect (**Settings → Advanced → RTSP**). The streams are plain RTSP on port 7447, with RTSPS on port 7441 as the fallback.

On a current release, or if you prefer, add each camera by hand, once:

1. **Choose I have the RTSP URL**

   Go to **Monitors**, click **Add Monitor**, then **I have the RTSP URL**.

2. **Paste the link**

   Paste the link from Protect into **RTSP URL** and give the camera a name, such as *Front door*.

3. **Save and check**

   Save, then open the camera page and check that the picture plays.

Vigiora accepts both `rtsps://` and `rtsp://` addresses. See [Add a camera by its RTSP address](https://vigiora.com/docs/cameras/add-a-camera#add-a-camera-by-its-rtsp-address).

After that, Vigiora handles the rest as for any camera: recording, motion detection, AI and alerts. Automatic rediscovery doesn't apply here, because the link points at the console: give the console a fixed address on your router. Pan, tilt and zoom on the UniFi PTZ model stays in Protect.

## Recording: which quality to pick

A typed address gives Vigiora one stream, so pick the quality to suit the camera:

- **High** where you may need to zoom into faces or plates later.
- **Medium** or **Low** on cameras where detail matters less. They save a lot of disk and keep live view light.
- Protect keeps recording as set in Protect. Vigiora's recordings are separate, on your own server, with their own retention. See [Recording and retention](https://vigiora.com/docs/cameras/recording-and-retention).
- The free plan has no camera limit and includes AI on 2 cameras.

## Troubleshooting

- **The RTSPS link doesn't play.** Some players don't accept Protect's encrypted link. Try the plain RTSP form on port 7447, without `?enableSrtp`.
- **The link disappeared.** Turning off the stream quality in Protect removes its link. Turn it on again, copy the link Protect shows now and paste it into the camera's **RTSP URL** in Vigiora.
- **No picture after a console restart or update.** Check in Protect that RTSP is still on for that camera.
- **A camera at another site.** The server must reach the console. Install a Vigiora Client next to the console. See [Add a camera through a Vigiora Client](https://vigiora.com/docs/cameras/add-a-camera#add-a-camera-through-a-vigiora-client).

## Related docs

1. **Add a camera**

   All the ways to connect a camera: [Add a camera](https://vigiora.com/docs/cameras/add-a-camera).

2. **Camera settings**

   Recording, AI and motion for each camera: [Camera settings](https://vigiora.com/docs/cameras/camera-settings).

3. **Troubleshooting**

   Missing stream, wrong path or freezes: [Troubleshooting cameras](https://vigiora.com/docs/cameras/troubleshooting-cameras).

---

Source: https://vigiora.com/articles/unifi-camera-self-hosted-nvr · Published 2026-11-16
