我正在尝试将我的 Windows10 与任何 NTP 服务器同步,但无论我使用哪种服务器,我总是收到超时。
我尝试在“Internet 时间设置”中设置几个不同的服务器,但每次尝试都出现“连接超时”的情况
当我尝试使用命令重新同步时,w32tm /resync /rediscover
我得到了不同的响应,即:
The computer did not resync because no time data was available.
但当我尝试w32tm /stripchart /computer:0.pl.pool.ntp.org /dataonly
响应时是:
The current time is 19.03.2020 14:04:59.
14:04:59, -24.5643160s
14:05:01, -24.5642918s
.
.
.
我认为这是正确的
当然我也尝试过手动配置peer
w32tm /configure /manualpeerlist:"0.pl.pool.ntp.org 1.pl.pool.ntp.org 2.pl.pool.ntp.org 3.pl.pool.ntp.org" /syncfromflags:manual /reliable:yes /update
net stop w32time
net start w32time
w32tm /resync
但同样:
Sending resync command to local computer
The computer did not resync because no time data was available.
我尝试禁用防火墙/防病毒软件并打开端口(UDP 123 和 UDP/TCP 6001-6035),我在其他答案中找到了这些端口,但没有一个能给我有效的答案。
附注:我的电脑大约四年半没有同步过
更新:命令
结果w32tm /query /configuration
[Configuration]
EventLogFlags: 2 (Local)
AnnounceFlags: 5 (Local)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 10 (Local)
MaxPollInterval: 15 (Local)
MaxNegPhaseCorrection: 54000 (Local)
MaxPosPhaseCorrection: 54000 (Local)
MaxAllowedPhaseOffset: 1 (Local)
FrequencyCorrectRate: 4 (Local)
PollAdjustFactor: 5 (Local)
LargePhaseOffset: 50000000 (Local)
SpikeWatchPeriod: 900 (Local)
LocalClockDispersion: 10 (Local)
HoldPeriod: 5 (Local)
PhaseCorrectRate: 1 (Local)
UpdateInterval: 360000 (Local)
[TimeProviders]
NtpClient (Local)
DllName: C:\WINDOWS\system32\w32time.dll (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (Local)
ResolvePeerBackoffMaxTimes: 7 (Local)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 1 (Local)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 32768 (Local)
Type: NTP (Local)
NtpServer: 0.pl.pool.ntp.org 1.pl.pool.ntp.org 2.pl.pool.ntp.org 3.pl.pool.ntp.org (Local)
NtpServer (Local)
DllName: C:\WINDOWS\system32\w32time.dll (Local)
Enabled: 0 (Local)
InputProvider: 0 (Local)
答案1
我无法判断这是否会对任何人有帮助,但我已经找到了这个问题。
我的 ISP 由于某种原因阻止了 ntp 服务器。