Share
This article explains how to connect compatible Lorex IP cameras to an X Series NVR using the ONVIF protocol.
Some compatible Lorex IP cameras must be initialized before they can be added to an X Series NVR. This process includes connecting the camera to your local network, finding the camera’s IP address, accessing the camera’s web interface, and creating an admin password. After the camera is initialized, it can be connected to the X Series NVR.
TABLE OF CONTENTS
- Before You Begin
- Connect the Camera to a Switch
- Find the Camera IP Address
- Initialize the Camera
- Connect the Camera to the NVR
- Check the Camera Status on the NVR
- If the Camera Password Does Not Match
- Confirm the Camera Connection
- Using AI Features After ONVIF Connection
Before You Begin
Before connecting the camera, confirm the following:
- The camera is listed as compatible with the X Series NVR. Check the compatibility chart.
- The X Series NVR is powered on and connected to a monitor.
- A USB mouse is connected to the NVR.
- An available PoE port is open on the back of the NVR.
- A computer is connected to the same local network as the camera during setup.
You will also need one of the following setup options:
- Option A: A PoE switch.
- Option B: A non-PoE switch and a dedicated camera power adapter.
Connect the Camera to a Switch
Before connecting the camera to the NVR, connect it to your local network so it can be initialized.
If using a PoE switch:

- Connect one end of an Ethernet cable to the camera.
- Connect the other end to an open port on the PoE switch.
- Wait a couple minutes for the camera to power on.
The PoE switch provides both power and network connectivity through a single Ethernet cable.
If using a non-PoE switch:
- Connect one end of an Ethernet cable to the camera.
- Connect the other end to an open port on the switch.
- Connect the camera’s power adapter to the camera.
- Plug the power adapter into an electrical outlet.
- Wait a couple minutes for the camera to power on.
Find the Camera IP Address
After the camera is connected to the switch, use an IP scanner tool to find the camera’s IP address.
To find the camera IP address:

- Make sure your computer is connected to the same local network as the camera.
- Open your preferred IP scanner tool.
- Scan the local network.
- Locate the camera’s MAC address on the physical label of the camera.
- Match the camera’s MAC address to the device listed in the IP scanner results.
- Write down the IP address assigned to the camera.
Initialize the Camera
Once you have the camera’s IP address, access the camera’s web interface to complete initialization.
To initialize the camera:
- Open a web browser on the computer connected to the same network as the camera.
- Enter the camera’s IP address into the browser address bar.
- Follow the on-screen setup wizard.

- Create a secure admin password when prompted.


- Complete the camera initialization process.
Connect the Camera to the NVR
After the camera has been initialized, disconnect it from the temporary switch and connect it directly to the X Series NVR.
To connect the camera to the NVR:

- Disconnect the Ethernet cable from the temporary PoE or non-PoE switch.
- If a separate power adapter was used, disconnect the power adapter from the camera.
- Connect the camera’s Ethernet cable directly to an open PoE port on the back of the X Series NVR.
- Wait for the camera to power on and initialize on the recorder.
The X Series NVR will begin detecting the camera on the connected PoE port.
Check the Camera Status on the NVR
After the camera is connected to the NVR, check the camera status from the Channel menu.
To check the camera status:
- Right-click twice to open the Main Menu, then go to Settings > Channel > Camera.

- Locate the newly connected camera by matching the channel number to the PoE port used on the back of the NVR.
- For example, if the ONVIF camera is connected to PoE port 1, the camera will be listed on channel 1.
- Check the camera status.
Scenario A: Camera and NVR passwords match

If the password created for the camera matches the NVR admin password, the NVR will automatically authenticate the camera.
After a few moments, the camera status should change to online and live video should appear on the display.
Scenario B: Camera and NVR passwords do not match
If the password created for the camera does not match the NVR admin password, the camera may show an authentication error or fail to connect automatically.
If this happens, manually enter the camera password in the NVR camera settings.
If the Camera Password Does Not Match

If the camera does not connect automatically, update the camera password field on the NVR to match the password created during camera initialization.
To update the camera password on the NVR:
- Right-click twice to open the Main Menu, then go to Settings > Channel > Camera.

- Click the
Modify button (under Operate) for that channel. - In the password field, enter the admin password created during the camera initialization process.

- Click OK to save the settings.
- Wait for the NVR to reconnect to the camera.
- Check the camera status again.
Confirm the Camera Connection
After the password is saved, confirm that the camera has connected successfully.
Confirm the following:
- The camera status changes to online.
- The camera appears in Live View.
- The camera is listed on the correct channel based on the PoE port used.
Using AI Features After ONVIF Connection
Some ONVIF-connected cameras may not support camera-based AI features on the X Series NVR.
The AI Multi-Target menu uses analytics built into the camera hardware. If the connected camera does not support camera-side AI analytics, it may not appear in the AI Multi-Target channel list.
Use Local Smart Analysis
Local Smart Analysis processes AI detection locally on the recorder. This feature is typically used when connected cameras do not support built-in AI analytics.
For ONVIF-connected cameras, use the Intrusion settings in Local Smart Analysis to configure recorder-based smart motion detection. Intrusion detection can be used to detect when a person or vehicle enters a defined detection area within the camera view.
To enable Local Smart Analysis:
- Right-click twice to open the Main Menu, then go to Settings > IVS > Local Smart Analysis > General.


- Enable Local Smart Analysis.
- Enable Draw Rect if you want detection boxes to appear on the video preview.
- Under Mode, select Detection mode.
- Select the ONVIF-camera channels where Local Smart Analysis will be active.
- Click Apply.
Configure Intrusion Detection
After Local Smart Analysis is enabled, configure the Intrusion settings for the camera channel.
To configure Intrusion detection:
- From Local Smart Analysis, click the Intrusion tab.

- Select the camera channel.
- Enable Intrusion.
- Click the Detection Area tab.
- Click and drag inside the camera image to create the detection area.
- Enable Limit Target Type, then select the target type such as Person or Vehicle.
- Click Apply to save the settings.
To configure when Intrusion detection is active:

- Click the Schedule tab.
- Review the schedule grid.
- Days of the week appear on the left, and the time of day appears across the top. Each square in the schedule grid represents 30 minutes.
- Click and drag across the grid to enable active time periods.
- Click and drag across an active time period to disable it.
- Click Apply to save the schedule.
To configure Intrusion event actions:

- Click the Event Actions tab.
- Enable the actions you want the recorder to perform when an Intrusion event is detected.
- Enable Event Recording if you want the recorder to record video when an Intrusion event occurs.
- Select the Post-Record time to set how long recording continues after the event.
- Select the Recording Channel that should record during the event.
- Enable any additional actions as needed, such as Email, Buzzer, FTP, PTZ, Alarm Out, Camera Alarm Out, Full Screen, or Speaker, depending on your recorder and camera configuration.
- Click Apply to save the settings.