DDNS HIKVISION CAMERA

ikerxeryo

n3wb
Jun 5, 2024
2
0
Huesca
Hi everyone,

I have a Hikvision camera set up with DynDNS. Currently, when my public IP changes (for example, after restarting the router), I have to manually update the DDNS settings on the camera to reflect the new IP.

I'm looking into whether there's an option or configuration for the camera to automatically update its DDNS when it detects a change in the IP address.

Does anyone have experience with this on Hikvision cameras?
 
Currently, when my public IP changes (for example, after restarting the router), I have to manually update the DDNS settings on the camera to reflect the new IP.
I don't really understand the problem or question.

The DDNS settings on the camera are fixed by your choice of DDNS service provider and your chosen domain name.
And the chosen domain name is how you wish to address your camera instead of using the ISP-assigned public IP address.
What specific change to the camera configuration are you making if the router is restarted and the public IP address changes?
 
  • Like
Reactions: looney2ns
DDNS enabled on the camera itself is unusual. This would seem to imply that the camera has a public IP address. When configured as such the camera would update its DDNS entry in whichever DDNS provider being used.

Typically the camera has a fixed private IP address within the range offered from DHCP running on the router. The router would be the one device in your network which would have a DDNS configuration.

Using an inbound VPN, like Tailscale, OpenVPN, you connect to the router (your internal network) and then to your cameras.

When DDNS on the router is configured correctly, it will update its ‘new’ IP address automatically.

=========

Screenshots of one of your cameras network definitions and a diagram of your network design would be most helpful to provide answers rather than guesses.
 
  • Like
Reactions: TonyR
1747230808804.png

I assume that if the camera itself has the ability to configure DDNS, it's because it could update the public IP once it changes, right? Well, it doesn't work.
 
Primer:

Domain Name System (DNS) is a service which translates a website name (ipcamtalk.com) to it's static, does not change, internet IP address (172.67.71.1). For you and me it is easier to remember names rather than numbers.​
Dynamic Domain Name System (DDNS) is a service which keeps DNS updated with a device's current address as it's address is not static but rather can change.​


Background:

Internet Service Providers (ISPs) have a pool of Public IP Addresses which they are authorized to use. Large corporations, or individuals, who pay substantial money are able to have specific, assigned static Public IP addresses to their entity. However, most home users (individuals) are provided with a Public IP Address which can be changed at any time by the ISP. For home users the changing IP Address really doesn't matter as they originate the traffic which enters the WWW. There are exceptions to this that the changing IP Address makes difficult; i.e. web hosting, private mail server, etc.​
Inbound connections are made to a known name, and the Public IP Address assigned to that name must be updated if/when the IP address changes. To maintain an accurate DNS record to the host which has a changing IP address is the purpose of DDNS.​

DDNS for cameras - Commercial/Public IP Address

Cameras have the ability to use DDNS, but it is not always needed/required; typically not needed.​
Commercial use of cameras may use DDNS within a company's domain as a simple method to deploy without the need of static or DHCP reservations. Though, the corporation will need to have its own private DDNS server which the cameras use. (they would not connect to a public DDNS server; .ipctddns.com, duckdns.com, no-ip.com, etc)​
Also any camera attached to the internet directly with a non-static Public IP Address would use DDNS to allow users a persistent name as a connection definition. Cameras connected to the internet with a Public IP Address could use a public DDNS server to provide an updated device name.​
DDNS for cameras - Home Use

Typically cameras used with the home environment are connected the the home internet through a router. The router enables multiple devices, not just one, to be connected simultaneously. The router is providing DHCP addresses of private IP range to all of the home user's devices. Private IP Addresses are not routable through the internet. Configuring a camera with DDNS having a Private IP Address provides no internet-to-camera accessibility/connectivity.​
Home cameras (typically) are set up with static Private IP Addresses within the router's DHCP address space; e.g. 192.168.1.#, 192.168.100.#, etc. Static assignments may be done via DHCP reservations or assigning an IP address directly on the device itself.​
Home use of DDNS is for the device which has a Public IP address. In most cases, this device would be the router. Nearly all modern routers have the ability to be configured with DDNS.​
Which are the Private IP Address Ranges?

10.0.0.0 to 10.255.255.255​
172.16.0.0 to 172.31.255.255​
192.168.0.0 to 192.168.255.255​
169.254.0.0 to 169.254.255.255: This range is used for Automatic Private IP Addressing (APIPA).​