Hikvision Camera 401 / 403 Authentication issues

Hikvision Camera 401 / 403 Authentication issues

Situation

Camera drivers are added to the project and everything is working.
After a period of time (5min, a week or after a power outage) you (or the customer) see that the cameras stop working and the Camera Tests report an Authentication issue along with a 401 or 403 code.

Cause

As a security measure, Hikvision devices will block an IP address (Illegal Login Block) if too many incorrect sign in attempts occur in rapid succession.

There will be 1 or more instances of a driver in the project that has the wrong username, password or authentication type (Digest or Basic) that triggers the IP block on the Control4's controller, stopping all camera drivers from working.

Solution

1) Remove ALL unused Hikvision drivers. Do not leave any old or test drivers in the project
2) You need to confirm that the username and authentication type is correct across ALL drivers in the project.
This includes the NVR driver if you have that installed.
3) Since we cannot 'see' the passwords in Control4 camera drivers, you should manually update the password in each driver. I recommend typing the password into notepad and testing that it works with the webui login first, then copy and paste it into each driver, rather than typing it out.
4) Reboot the NVR - This will reset the Illegal Login Block
5) Test all the features used with the driver (camera tests, view the rtsp streams on the Navigators, Push Notifications, smart event triggers)
6) Confirm that everything works after the period in which you saw the authentication issues occur
7) Reboot the C4 controller to make sure that the issue doesn't re-appear after a power outage

Subsequent Issues

Issue only appears after a reboot/power outage
There have been a few cases where the controller is under significant load during the power on sequence and the initialization process for some drivers are dropped.
When this happens to a camera driver, the default default will be used password rather than the saved password. This triggers the Illegal Login Block in the NVR.
You will need to resolve the underlying C4 project issues causing this to occur.

If the issue continues to appear

Unfortunately, the best approach in these situations is to delete all the camera and NVR drivers in the project and re-add them one at a time, methodically testing each driver to make sure the issue isn't re-introduced.
Make sure you are using the Advanced drivers, have the NVR driver working and then making a binding between the camera and NVR drivers.

    • Related Articles

    • Testing Camera Drivers using VLC

      When a camera driver's Video test passes and you are still unable to view an rtsp stream on the Navigators, the first troubleshooting step is to confirm whether the issue is inside Control4 or outside of Control4. Requirements You MUST be onsite ...
    • Control4 Unifi Protect: Accessing Camera History Snapshots and recordings

      Problem Control4 does not provide access to third party developers to attach snapshots and video to the built in Camera interface history. To provide Solution Chowmain have developed a custom NVR interface which is built into the UniFi Protect ...
    • CONTROL4 HIKVISION: Video not showing but driver tests are passing.

      How to diagnose This is usually caused when Hikvision stream encryption is enabled. You can confirm if this is the case with the following two methods: In Composer by double clicking on the Hikvision driver and selecting H264 from the Image View ...
    • Control4 Unifi: Multi-Factor / MFA Authentication Support

      Multi-Factor Authentication is not supported or recommended for the Chowmain UniFi driver. For the best experience, we recommend using Local Logins. More information can be found in our official driver documentation or our knowledgebase: ...
    • Control4 TPLink: Failed to connect. Authentication Failed

      Symptom When attempting to attempt to connect to a KLAP based Tapo or KASA device, Connection Status shows "Failed to connect. Authentication failed" Solution Ensure you are using Version 20251218 or later. Check and ensure you are using the latest ...