October 06, 2023
We all know that for monitoring equipment, unit and time accuracy of equipment is key to ensuring integrity of video files and logs.
Although DVRs, servers, and other equipment have their own clocks, errors will accumulate over time. If errors are not corrected, they will accumulate indefinitely. Currently best solution is to use an NTP server Come to school.
There are many servers on Internet that provide NTP school time, such as time.windows.com time server provided by Microsoft, pool.ntp.org time server provided by NTP International, etc. Devices connected to Internet, can receive time synchronization through these time servers.
So, for an environment with many devices and no network, how do I set time of these devices?
"How do I set up my own NTP school time server on a local network?"
In this issue, we will answer this question and teach you how to build an NTP server with Windows 10 computers on a local network~
01. Change registry
Computer win + R, type regedit in run window to open registry editor.
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer, set Enabled to 1.
\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config and set AnnounceFlags to 5 (default is a).
02. Enable NTP Service
win + R Type services.msc in start window to open service.
Locate Windows Time in service element, double-click to open it, and set [Startup Type] to Automatic.
Then right-click to restart service. The service will start successfully.
03. Firewall opens UDP port 123
Enter Windows Settings interface, select Network and Internet to sign in.
Enter the Windows Firewall interface-Advanced Options, select Inbound Rules-New Rules:
Select protocol port and port, select UDP protocol, add port number 123, click next until configuration is complete.
Set port name and description.
04. Restart your computer and see if this works
Local computer test:
Win+R, in window that opens, enter w32tm /stripchart/computer:127.0.0.1, if there is time to echo, configuration was successful.
Check computer time setting:
Test directly using Windows Internet Time settings.
■ If there is one host on local network, you can use address 127.0.0.1 to test efficiency of service.
■ If you have two hosts, one as a server and one as a client. Enter server IP address in Internet time settings, which is IP address of corresponding PC.
After configured according to above method, your Windows system computer will become an NTP school time server on local network~
For example: In monitoring equipment that needs to set time on local network, IP address of NTP time setting server is entered into IP address of computer, port 123, and time of monitoring equipment can be adjusted~