Recently, while working on a Dahua CCTV Camera system, I ran into an issue initializing cameras via the NVR where even with DHCP enabled during the setup process, the cameras were stuck on the default IP address of 192.168.1.108 after being initialized.
Short on time, here is the solution:
With this particular NVR, the cameras ship with a default IP of 192.168.1.108 and you can initialize them directly via the network video recorder, which changes the default password and also allows you to set the IP of the camera at the same time.
For this particular setup, the network is not using a 192.168.1.X network range and the router is being used to manage IP’s, by using DHCP and then setting static/reserved IP addresses on the router level.
However, I ran into an issue where when selecting DHCP during the initialization, the initialization would work and after selecting DHCP, the option to change the IP address would go away. However, the IP address of the camera’s IP Address would remain at 192.168.1.108 after it was initialized.
On the router level, I observed that a DHCP lease was handed out for the camera, which was obvious by looking at the MAC Address, and it was in the correct range. However, the camera itself remained stuck at 192.168.1.108. Rebooting the camera and resetting the camera had no effect on this.
If a static IP was selected during initialization, it would work correctly, However, I did not want to use static IP’s on the NVR level and would prefer to handle this on the router side of things.
While it is possible to directly connect to the camera by changing your computer’s IP address to match the 192.168.1.X range, using their camera config tool on your laptop, manually setting the IP to be static instead of using DHCP, or, of course, just changing the IP range of the router to match, my preference was to do it all on the NVR and initialize multiple cameras at once.
After some debugging, I found a work around that fixed the issue:
Add a Comment