Effortless Time Syncing for Two Windows 11 PCs: A Connected Desk Solution

Abstract: Resolve time drift between two Windows 11 PCs by configuring one as a local NTP server and allowing UDP port 123 through the firewall.

Created: 2026-09-09 by
Synchronize time between two Windows 11 PCs connected via a local switch and internet by configuring one machine as the authoritative NTP server. This setup ensures both systems maintain accurate timestamps without relying solely on external internet sources, which can be inconsistent or blocked by strict firewall rules. By leveraging the built-in Windows Time service (W32Time), you create a reliable internal time source that enhances security and operational consistency across your local network.

Configuring the Primary Time Server

To establish a stable time reference, designate one of your Windows 11 machines as the primary server. This PC will sync with an external internet time source, while the second PC will sync exclusively with this local server. Start by opening an elevated Command Prompt. You can quickly access this by right-clicking the Start button and selecting Terminal (Admin) or searching for cmd in the Start menu and running it as administrator. For convenience, consider following the guide on How to Pin CMD to the Taskbar in Windows 11 to streamline future administrative tasks. First, stop the current time service using the command:
net stop w32time
Next, configure the server to use a reliable external source, such as Microsoft’s public time servers. Run the following commands to set the type to NTP and specify the source:
w32tm /config /syncfromflags:manual /manualpeerlist:"time.windows.com,0x8 time.microsoft.com,0x8" /update
The 0x8 flag indicates that these are special peers, ensuring high priority. After updating the configuration, restart the service:
net start w32time
Verify the configuration by checking the status:
w32tm /query /configuration
Ensure the output shows Type: NTP and lists your chosen peers. If the service fails to start, check the Event Viewer under Applications and Services Logs > Microsoft > Windows > Time-Service for detailed error messages.

Setting Up the Client PC

On the second Windows 11 PC, configure the system to trust the first PC as its sole time source. Open an elevated Command Prompt on this client machine. Stop the time service again:
net stop w32time
Configure the client to synchronize with the IP address or hostname of the primary server. Replace SERVER_IP with the actual local IP address of your primary machine:
w32tm /config /syncfromflags:manual /manualpeerlist:"SERVER_IP" /update
Restart the service:
net start w32time
Force an immediate synchronization attempt to verify connectivity:
w32tm /resync
If the resync fails, the issue is likely network-related rather than configuration-based. Proceed to the next section to ensure your firewall allows this communication.

Firewall Configuration for Local Sync

Windows Firewall often blocks incoming NTP traffic, especially if the connection profile is set to Public. To allow the client to reach the server, you must permit UDP port 123 on the primary machine. Open Windows Defender Firewall with Advanced Security. Create a new Inbound Rule by selecting New Rule under Actions. Choose Port and select UDP, specifically for Specific local ports entering 123. Allow the connection for all profiles, though restricting it to Private may suffice if both PCs are on a trusted home network. Name the rule "Windows Time Service NTP" and finish the wizard. On the client side, no inbound rule is needed, but ensure outbound UDP 123 is allowed. Test the sync again with w32tm /resync. A successful response confirms the firewall is correctly configured. For broader network management tips, you might also find value in reading about Control volume with key bindings in Windows 11 to optimize your overall workflow efficiency.

Verifying Synchronization Accuracy

After configuring both machines, verify the accuracy of the synchronization. Use the following command on the client PC:
w32tm /query /status
Look for the Source field. It should display the IP address of your primary server, not an external internet source. Check the Stratum level; it should be higher than the server’s stratum (e.g., if the server is stratum 2, the client should be stratum 3). The Last Successful Sync Time should reflect the recent resync attempt. If discrepancies persist, check the time offset. A small drift of a few milliseconds is normal. Large offsets indicate a deeper network or configuration issue. Ensure both PCs have similar hardware clocks and that no other software, such as third-party antivirus suites, is interfering with the W32Time service.

Frequently Asked Questions

Why does my PC still sync to the internet instead of the local server?

This usually happens if the manual peer list is not correctly applied or if the /update flag was missed. Verify the configuration with w32tm /query /configuration to ensure SyncFromFlags is set to Manual. Restarting the service after changing settings is critical.

Can I use a domain controller as the time source?

Yes, in a domain environment, clients typically sync with the domain controller, which itself syncs with the PDC emulator. For standalone PCs like those described, manual NTP configuration is the correct approach. Mixing domain and workgroup setups requires careful group policy management.

What if the firewall blocks UDP 123 despite being open?

Check if your antivirus software has its own firewall layer that overrides Windows Defender settings. Some security suites block unsolicited incoming UDP traffic even if Windows rules allow it. Temporarily disable third-party firewalls to test if they are the culprit.

Is it safe to leave the time server exposed on a Public network profile?

No, exposing NTP services on a Public profile increases attack surface. Always set your network location to Private for trusted local networks. Restrict the firewall rule to specific IP addresses if possible, rather than allowing any source.

How do I reset the time service if it becomes unresponsive?

You can reset the configuration to defaults by running w32tm /unregister followed by w32tm /register, then restarting the service. This clears corrupted registry keys related to time synchronization. Avoid doing this frequently unless troubleshooting persistent errors.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More