Product Features
...
Network
Configure DNS/NTP Servers

Configure a Local NTP Server

9min

Devices rely on an internet time server and a clock source, such as a GPS satellite, to synchronize time across devices. However, in an offline scenario where devices are not connected to the internet, time synchronization must be achieved using a local Network Time Protocol (NTP) server.

If you require a local NTP server:

  • Check with your IT team. An NTP server may already be provisioned.
  • If an NTP server is not already available, create a Windows-based NTP server by following the steps below.

Before You Begin

  • A Windows server running Windows 7, 8, or 10 is required. Procedures listed on this page have been tested using Windows 10. Other Windows versions may have a slightly different workflow.
  • You must have Administrator privileges to configure the Windows server.
  • Requires a basic understanding of Windows registry. Caution should be used when updating the registry.

Configure a Local NTP Server

To configure a local NTP Server, you will need to do the following:

  • Step 1: Configure Windows Time Service
  • Step 2: Update Windows Registry to Create Local NTP Service
  • Step 3: Update Windows Registry to Configure Time Provider
  • Step 4: Update Windows Registry to Configure Announce Flags
  • Step 5: Start Local Windows NTP Time Service

To jump to a specific section, refer to the Table of Contents on the right side and click the corresponding step.

Step 1: Configure Windows Time Service

To configure the Windows Time Service:

  1. In the File Explorer, navigate to: Control Panel\System and Security\Administrative Tools.
  2. Double-click Services. Alternatively, enter services.msc in the Windows Run dialog (Windows Key + R).
  3. In the Services list, right-click Windows Time and click Stop. The Windows Time service may already be stopped. In this case, skip this step and proceed to the steps below.

    The Windows Time service
    The Windows Time service
    

Step 2: Update Windows Registry to Create Local NTP Service

To create a local NTP service:

  1. Launch Windows Run (Windows Key + R).
  2. Enter regedit and click OK.
  3. Navigate to the registry key: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters. If you don't see LocalNTP REG_DWORD in the list, continue with the following steps. If you do see it, keep the Registry Editor open and proceed to the next task.
  4. Right-click in the Registry Editor, select New, select DWORD, and enter LocalNTP (note that this name is case sensitive).

    Create New DWORD item
    Create New DWORD item
    
  5. Double-click LocalNTP, change the Value data to 1, select a Base of Hexadecimal, and click OK.
  6. Keep the Registry Editor open for the next task.

Step 3: Update Windows Registry to Configure Time Provider

To configure the time provider:

  1. Navigate to the registry key: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders
  2. Select NtpServer, double-click Enabled, change the Value Data to 1, select a Base of Hexadecimal, and click OK.

    Edit DWORD Value dialog box
    Edit DWORD Value dialog box
    
  3. Keep the Registry Editor open for the next task.

Step 4: Update Windows Registry to Configure Announce Flags

To configure the announce flags:

  1. Navigate to the registry key: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
  2. Double-click AnnounceFlags, change the Value data to 5, select a Base of Hexadecimal, and click OK.

    Edit DWORD Value dialog box
    Edit DWORD Value dialog box
    
  3. Close the Registry Editor.

Step 5: Start Local Windows NTP Time Service

To start the local Windows NTP Time Service:

  1. In the File Explorer, navigate to: Control Panel\System and Security\Administrative Tools.
  2. Double-click Services.
  3. In the Services list, right-click Windows Time and select Properties.
  4. In the Windows Time Properties (Local Computer) dialog box, select a Startup type of Automatic, click Start for Service status, and click OK.

    The Windows Time Properties dialog box
    The Windows Time Properties dialog box
    

The local NTP Time Server configuration is now complete. You can now synchronize the time of other computers and devices on your local network.

Synchronize Time on Devices

In order for devices on your local network to communicate with this new local time server, you must know the IP address of the Windows NTP Time Server.

To synchronize the time on devices:

  1. On the Windows server that you just configured as an NTP server, go to the Windows Command Prompt, enter: ipconfig.
  2. Locate the IP address of the NTP server.
  3. Go to either the Manufacturing Connect Edge Web UI or the Terminal User Interface (TUI) and enter the address of the local NTP server.