Setup NTP Server In Windows PC

Description of your first forum.
Post Reply
admin
Site Admin
Posts: 22
Joined: Sat Jun 20, 2020 1:29 pm

Setup NTP Server In Windows PC

Post by admin »

If you have one computer in the network connected to NTP server you can use this computer as NTP forwarder for other devices.
W32time is responsible for maintaining and synchronising clock in windows PC.
Procedure for setting NTP server in windows PC is as follows:
1. In commandprompt write "net stop w32time".
1. Open registry editor in admin rights (Click Run>regedit.exe)
2. Go To:HKLM\System\CurrentControlSet\services\W32Time\TimeProviders\NtpServer.
3. Change "NtpServer" value from 0 to 1.
4. In commandprompt write "net start w32time".
Now your NTP server is fully functional you can use it in other windows or linux terminal
In windows terminal use :
1. Go To:HKLM\System\CurrentControlSet\services\W32Time\Parameters.
2. In "NtpServer" point the ip address or NTP server name.
In linux problem arises synchronising with windows NTP server due to high local clock dispersion.
To reduce local clock dispersion in NTP server you have to follow this procedure:
1 Go To:HKLM\System\CurrentControlSet\services\W32Time\Config.
2. Set the value of registry "LocalClockDispersion" to "0".
3. Restart w32 time: "net stop w32time".
"net start w32time".
Next time you use your Raspberry pi offline make sure it gets synchronized from windows PC as NTP server. No need of RTC for raspberry PI.
If you find this article helpful please share your comments.

Thanks
Admin

Post Reply