Gee, setting up an SNTP/NTP server in Windows is not intuitive.
The good news is: When configured correctly, you can use the Windows Time (W32Time) service as an SNTP/NTP server for both windows and non-windows SNTP/NTP clients.
Here's how to do it:
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click the following registry entry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\
- In the right pane, right-click AnnounceFlags, and then click Modify.
- In the Edit DWORD Value dialog box, under Value data, type 5, and then click OK.
- Enable NTPServer.
- Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\W32Time\TimeProviders\NtpServer\ - In the right pane, right-click Enabled, and then click Modify.
- In the Edit DWORD Value dialog box, type 1 under Value data, and then click OK.
- Locate and then click the following registry subkey:
- Exit Registry Editor.
- At the command prompt, type the following command to restart the Windows Time service, and then press ENTER:
net stop w32time && net start w32time
Tips
- Make sure W32Time is set to Automatic startup mode.
- Make sure UDP 123 is allowed through your firewall.
- Use this InternetTime program to help you debug connectivity to your SNTP/NTP server.
No comments:
Post a Comment