---
title: "Set up Lorex cameras or a Lorex recorder with a self-hosted NVR"
description: "How to record Lorex cameras on your own Vigiora Server. Which Lorex products have a local stream, the stream address for a camera and for a channel of a Lorex recorder, and what Vigiora finds by itself."
url: https://vigiora.com/articles/lorex-camera-self-hosted-nvr
language: en
date: 2026-11-27
updated: 2026-11-27
tags: [how-to]
scenario: false
---

# Set up Lorex cameras or a Lorex recorder with a self-hosted NVR

> How to record Lorex cameras on your own Vigiora Server. Which Lorex products have a local stream, the stream address for a camera and for a channel of a Lorex recorder, and what Vigiora finds by itself.

Lorex kits are in many homes, cottages and small shops in Canada: a recorder, four or eight wired cameras, and one app. The wired cameras and many of the recorders can also send their video to other software. That means you can record them on a Vigiora Server, with or without the Lorex recorder.

This guide shows which Lorex products can do it, the stream addresses, and the two ways to connect.

> **What you need**
>
> - A wired Lorex IP camera, or a Lorex recorder (NVR or DVR) with cameras on it.
> - The admin password you set when you first set up the recorder or camera.
> - A Vigiora Server on the same network. See [Install on Linux](https://vigiora.com/docs/getting-started/install-linux) or [Install on Windows](https://vigiora.com/docs/getting-started/install-windows).
>

## Which Lorex products have a local stream

| Product | Local stream (RTSP) | ONVIF |
| --- | --- | --- |
| Wired PoE cameras | Yes | Yes |
| Recorders (NVR and DVR) | On certain models | Depends on the model |
| Wi-Fi cameras | Depends on the model and firmware | Usually no |
| Battery cameras and doorbells | No | No |

Lorex says in its own [RTSP article](https://www.lorex.com/blogs/help/ip-cameras-using-real-time-streaming-protocol-rtsp-with-your-dvr-nvr) that RTSP works with certain models of recorders and IP cameras, and it does not list them. So test yours first, as shown below. Battery cameras and doorbells are built for the Lorex app and cannot be recorded by another program.

## The stream addresses

Replace the user, password and address with your own.

| Stream | Address |
| --- | --- |
| Main | `rtsp://user:password@192.0.2.21:554/cam/realmonitor?channel=1&subtype=0` |
| Sub | `rtsp://user:password@192.0.2.21:554/cam/realmonitor?channel=1&subtype=1` |

`subtype` picks the stream: 0 is the main stream, 1 is the smaller sub-stream. The port is 554 unless you changed it.

`channel` is 1 when the address is a camera. When the address is a recorder, `channel` is the number of the camera on it: the third camera is `channel=3`.

![Two diagrams: cameras on a network switch read directly by Vigiora Server, and cameras plugged into a Lorex recorder read through the recorder with channel numbers](https://vigiora.com/articles/img/lorex-camera-self-hosted-nvr/two-ways.webp)

*The two ways to connect. A drawn diagram, not a screenshot.*

## Way 1: read the cameras directly

Use this when the cameras are plugged into your own network switch or PoE switch, so each camera has an address on your network.

1. **Scan**

   In Vigiora, open **Monitors → Add Monitor → On this network**. The scan lists the cameras it finds, with maker and model.

2. **Type the login**

   Pick a camera and type its user name and password. Vigiora asks the camera for its main and sub streams.

3. **Save**

   Check the picture and save. Repeat for the other cameras.

## Way 2: read the cameras through the Lorex recorder

Use this when the cameras are plugged into the back of the Lorex recorder. Those ports form a small private network inside the recorder, so the cameras are not visible from your own network. The recorder passes their video on.

1. **Find the recorder's address**

   On the recorder, open the network or system information page and note its IP address.

2. **Test one channel**

   Open the main address above in VLC (**Media → Open Network Stream**) with the recorder's address and `channel=1`. If a picture appears, your recorder supports RTSP.

3. **Add each channel in Vigiora**

   Open **Monitors → Add Monitor → I have the RTSP URL** and paste the main address. Vigiora tries the matching `subtype=1` sub-stream by itself. Add one monitor for each channel.

With this way, the Lorex recorder keeps recording too. Many people run both for a few weeks, and then decide whether to keep the recorder or move the cameras to a PoE switch.

## What Vigiora finds for you

Current wired Lorex cameras use the same stream addresses as Dahua cameras, and Vigiora treats them the same way.

1. **The scan finds the camera** with its maker and model.
2. **It asks for the streams over ONVIF**, main and sub.
3. **If ONVIF refuses the login**, it tries the main stream address once with the same login before it gives up.
4. **If ONVIF does not answer**, it tries the addresses above, and the sub-stream comes with the main one.

If a camera sits on a factory address that clashes with another device, an administrator can click **Move camera to DHCP**. See [Move a camera to DHCP](https://vigiora.com/docs/cameras/add-a-camera#move-a-camera-to-dhcp).

Vigiora stops at the first refused password and does not send the same wrong password to that camera again for 30 minutes, so a typing mistake does not lock the camera.

## Recording: main stream or sub-stream

- **Record the main stream** at the door, the till and the driveway, where you may need to read a face.
- **Record the sub-stream** with **Record low quality (sub-stream)** elsewhere. It saves most of the disk. See [Main stream or sub-stream?](https://vigiora.com/docs/cameras/recording-and-retention#main-stream-or-sub-stream).
- A 4K camera writes about four times the data of a 1080p one. See [Camera resolution, pixels and night vision](https://vigiora.com/articles/camera-resolution-pixels-night-vision) for the sums.
- The free plan has no camera limit and includes AI on 2 cameras.

## Troubleshooting

- **No picture in VLC from the recorder.** Your recorder may be one of the models without RTSP, or an older one with a different address. Some older Lorex recorders use `rtsp://user:password@192.0.2.21:554/ch01/0` for the main stream and `/ch01/1` for the sub-stream.
- **Wrong camera.** Check `channel=`. It is the camera's number on the recorder.
- **Login refused on a new camera.** Newer Lorex cameras have no factory password. Set one in the camera's web page, or let the Lorex recorder set it, before you add the camera.
- **No sub-stream.** Check that the second stream is switched on in the camera's or recorder's video settings, then save the monitor again. See [No sub-stream](https://vigiora.com/docs/cameras/troubleshooting-cameras#no-sub-stream).
- **The camera vanished after a power cut.** Vigiora follows a camera to a new address by its hardware ID. See [Fixed IPs and rediscovery](https://vigiora.com/docs/cameras/fixed-ips-and-rediscovery).

## 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. **See them from the cottage or from town**

   Remote access with no port to open: [View your cameras from anywhere without port forwarding](https://vigiora.com/articles/view-cameras-remotely-without-port-forwarding).

3. **Troubleshooting**

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

---

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