I’m facing an issue with time synchronization between my Windows PC and an Ubuntu NTP server. Here’s my setup and what I’ve tried so far:
Setup:
Ubuntu PC:
IP Address: 192.168.1.4
NTP Server: ntpd running and synchronized with multiple servers.
Firewall (UFW): Disabled
Windows PC:
IP Address: 192.168.1.5
Windows Time service (w32time): Running
Firewall: Added rule to allow UDP traffic on port 123
Steps Taken:
Ubuntu NTP Configuration:
Added the following lines to /etc/ntp.conf:
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
server 0.ubuntu.pool.ntp.org iburst
server 1.ubuntu.pool.ntp.org iburst
server 2.ubuntu.pool.ntp.org iburst
server 3.ubuntu.pool.ntp.org iburst
Restarted NTP service : (sudo systemctl restart ntp).
Verified NTP status (ntpq -p) shows synchronization with upstream servers.
Windows Configuration:
Added firewall rule to allow NTP traffic:
netsh advfirewall firewall add rule name=”Allow NTP” protocol=udp dir=in localport=123 action=allow
Configured NTP server:
w32tm /config /manualpeerlist:”192.168.1.4″ /syncfromflags:manual /reliable:YES /update
Restarted Windows Time service:
net stop w32time
net start w32time
Resynchronization:
w32tm /resync
Issue:
Despite these configurations, my Windows PC continues to use the local CMOS clock as the time source. The output of w32tm /query /status shows:
Source: Local CMOS Clock
ReferenceID: 0x4C4F434C (LOCL)
Running w32tm /stripchart /computer:192.168.1.4 /samples:5 /dataonly results in timeout errors:
Tracking 192.168.1.4 [192.168.1.4:123].
The current time is …:
07:43:00, error: 0x800705B4
…
Additional Information:
I can ping the Ubuntu PC from the Windows PC without any issues.
The Ubuntu NTP server is synchronized with its upstream servers.
The firewall rule on the Windows PC is confirmed to be in place and active.
Request:
Any advice on why the Windows PC isn’t syncing with the Ubuntu NTP server and continues to use the local CMOS clock? Are there additional configurations or diagnostics I should try? Thank you.