This is an interesting question.
Of course, if your LAN is connected to the Internet, the obvious solution is to sync both computers to the same Internet time source, such as time.windows.com or time.nist.gov (see http://tf.nist.gov/tf-cgi/servers.cgi).
The internal real time clocks (RTC) in most computers aren't particularly accurate, but if what you want to do is have two computers sync'ed to the same clock, put all those registry settings back to their defaults and see the response from Hans-Georg Michna here --> http://www.pcreview.co.uk/forums/sync-time-among-pcs-lan-ntp-t244334.html
The "windowsservername" corresponds to the "full name" of the computer. Right-click My Computer, select Properties, and select the "Computer Name" tab.
If the computer name isn't recognized, it's probably because NetBIOS name resolution isn't enabled. To test, open a Command Prompt windows (Start > Run > cmd > OK) and type
ping computername {press Enter}
Note that you don't use the two back slashes for the ping command. For example, if computers named Alice, Bob, and Carol are on the LAN, on computer Alice, you would type
ping Bob {press Enter}
but if you were trying to sync the time on Alice using Bob as the source of the time, you would type
net time \Bob /set
To test the net time command, run it without the set parameter. For example:
net time \Bob
You should get the following output (following is from Windows 7, but it should be basically the same for XP):
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\LemP>net time \Bob
Current time at \Bob is 7/10/2013 2:30:30 PM
The command completed successfully.
To enable NetBIOS name resolution:
- Open Network Connections (Start > Run > ncpa.cpl > OK)
- Right click on the icon for your LAN adapter and select Properties
- Select "Internet Protocol (TCP/IP" and click the "Properties" button
- Click the "Advanced" button
- Select the WINS tab
- Select the middle radio button to "Enable NetBIOS over TCP/IP"
- OK your way out