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.
· 5 min czytania · Pokaż jako Markdown

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.
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 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.

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.
Scan
In Vigiora, open Monitors → Add Monitor → On this network. The scan lists the cameras it finds, with maker and model.
Type the login
Pick a camera and type its user name and password. Vigiora asks the camera for its main and sub streams.
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.
Find the recorder's address
On the recorder, open the network or system information page and note its IP address.
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.Add each channel in Vigiora
Open Monitors → Add Monitor → I have the RTSP URL and paste the main address. Vigiora tries the matching
subtype=1sub-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.
- The scan finds the camera with its maker and model.
- It asks for the streams over ONVIF, main and sub.
- If ONVIF refuses the login, it tries the main stream address once with the same login before it gives up.
- 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.
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?.
- A 4K camera writes about four times the data of a 1080p one. See Camera resolution, pixels and 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/0for the main stream and/ch01/1for 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.
- The camera vanished after a power cut. Vigiora follows a camera to a new address by its hardware ID. See Fixed IPs and rediscovery.
Related docs#
Add a camera
All the ways to connect a camera: Add a camera.
See them from the cottage or from town
Remote access with no port to open: View your cameras from anywhere without port forwarding.
Troubleshooting
Missing stream, wrong path or freezes: Troubleshooting cameras.