{"id":5586,"date":"2018-05-22T21:26:41","date_gmt":"2018-05-22T19:26:41","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=5586"},"modified":"2018-05-23T14:12:25","modified_gmt":"2018-05-23T12:12:25","slug":"windows-enable-ntp-client-and-server","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-enable-ntp-client-and-server\/","title":{"rendered":"Windows: Enable NTP Client and Server"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_5586 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_5586')){$('.twoclick_social_bookmarks_post_5586').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20Enable%20NTP%20Client%20and%20Server\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Athe%20Windows%20Time%20service%20includes%20both%20an%20NTP%20Client%20and%20an%20NTP%20Server.%20The%20NTP%20Server%20is%20disabled%20by%20default.%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-enable-ntp-client-and-server\\\/\",\"post_id\":5586,\"post_title_referrer_track\":\"Windows%3A+Enable+NTP+Client+and+Server\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>the Windows Time service includes both an NTP Client and an NTP Server. The NTP Server is disabled by default.<br \/>\n<!--more--><br \/>\nIf your Windows Box should act as NTP Server config a valid time source first. Either a DCF77 (Germany) Receiver or an couple of NTP Servers which you trust.<\/p>\n<p>For Germany I recommend to use the NTP Server from the &#8220;physikalisch-technische bundesanstalt&#8221;.<\/p>\n<p>Lets start. Configure the Windows Time Service as NTP Client.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nD:\\&gt; w32tm \/config \/syncfromflags:manual \/update \/manualpeerlist:ptbtime1.ptb.de,ptbtime2.ptb.de\r\n<\/pre>\n<p>Configure w32time Service to start automatically<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nD:\\&gt; sc config w32time start= auto\r\nD:\\&gt; net start w32time \r\n<\/pre>\n<p>Configure w32time as Server<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nD:\\&gt; w32tm \/config \/reliable:yes\r\nD:\\&gt; w32tm \/config \/update\r\nD:\\&gt; reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer \/v Enabled \/t REG_DWORD \/d 1 \/f\r\nD:\\&gt; net stop wuauserv\r\nD:\\&gt; net start wuauserv\r\n<\/pre>\n<p>Open Firewall<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nD:\\&gt; netsh advfirewall firewall add rule name=&quot;NTP Server&quot; dir=out protocol=udp localport=123 profile=any enable=yes action=allow\r\nD:\\&gt; netsh advfirewall firewall add rule name=&quot;NTP Server&quot; dir=in  protocol=udp localport=123 profile=any enable=yes action=allow\r\n<\/pre>\n<p>Check configuration, a section NtpServer  should appear<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nD:\\&gt; w32tm \/query \/configuration\r\n...\r\nNtpServer (Local)\r\nDllName: C:\\Windows\\system32\\w32time.dll (Local)\r\nEnabled: 1 (Local)\r\nInputProvider: 0 (Local)\r\nAllowNonstandardModeCombinations: 1 (Local)\r\n...\r\n<\/pre>\n<p>Test it from another computer<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:\\&gt; w32tm \/stripchart \/computer:youtNTPServer \/samples:4 \/dataonly\r\nTracking youtNTPServer&#x5B;192.168.254.1:123].\r\nCollecting 4 samples.\r\nThe current time is 22.05.2018 22:53:55.\r\n22:53:55  -00.0636377s\r\n22:53:56  -00.0662772s\r\n22:53:57  -00.0583119s\r\n22:53:58  -00.0671685s\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, the Windows Time service includes both an NTP Client and an NTP Server. The NTP Server is disabled by default.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[47,1198,373,1199,370,20],"class_list":["post-5586","post","type-post","status-publish","format-standard","hentry","category-windowsknowhow","tag-enable","tag-ntp-client","tag-ntp-server","tag-query-ntp-server","tag-w32tm","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/5586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=5586"}],"version-history":[{"count":6,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/5586\/revisions"}],"predecessor-version":[{"id":5593,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/5586\/revisions\/5593"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=5586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=5586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=5586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}