How to make your PC as a time server providing time for cameras

How to make your PC as a time server providing time for cameras

There are four steps to set your PC as a time server in the local network.

Step1. Set value in “regedit” in Windows
Step2. Turn the time services on in Windows services
Step3. Configure Windows firewall allow time services communicating with each camera
Step4. Set PC time clock in each camera

Step1. Set two values in “regedit” in Windows

Go to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer\Enabled –> set to 1

Go to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags –> set to 5

Step2. Turn the time services on in Windows services

Go to services in Windows.

Highlight “Windows Time” in services.

And double click on it. Change Startup Type to “Automatic”. And click “Start”, then click “Apply” and “OK”.

Step3. Configure Windows firewall allow time services communicating with each camera

Open the Windows firewall window, select “Advanced Settings”.

Go to “Inbound Rules” and create a new rule.

Select “Rule Type” as “Port”, and go “Next”.

Specifying a port number “123” in specific local ports.

Go “Next” in Action.

Go “Next” in profile.

 

Set a name to “timeUDP 123” and click on “Finish”.

set name

Highlight on new time123, and double click on it and verify protocol in “UDP” and click on “Apply” to save the settings.

Step4. Set a PC time clock in each camera.

Now we can set cameras timestamp sync with the PC time server just made in a standalone network without Internet clock servers.

set PC NTP server to each camera

Here is the sample on how to set the camera clock to a PC time server. If the camera IP address is 192.168.1.109, then
open a browser, enter a camera IP address to URL in a browser.

do SET clock:

http://192.168.1.109/cgi-bin/hi3510/param.cgi?cmd=setntpattr&-ntpserver=192.168.1.225&-ntpinterval=1

192.168.1.109 –> camera IP address.
192.168.1.225 –> PC IP address with the PC time server in it.
-ntpinterval=1 –> sync camera time with PC per hour

You can check if the camera timestamp gets from PC time server,

do GET clock:

http://192.168.1.109/cgi-bin/hi3510/param.cgi?cmd=getntpattr

To verify the current NTP is a PC time server while camera updating time per hour.