# Setting Up a Link-Local NTP Server on a closed network

## General Overview

An NTP server on a closed network reduces outbound network traffic by designating a small subset of computers to sync their time with the global time servers and then relay that time to all devices internal to the network.

### Set Up the NTP Server on Windows

All versions of Windows (as of January 2021) have an outdated and unsupported implementation of the NTP protocol. Therefore, it requires some additional setup.

1. Download and install the latest NTP server installer for Windows from Meinberg Global. Scroll down to the bottom part of the page to find the setup.exe file next to the first drop-shaped icon.

2. Scroll further, and under the file with the second drop-shaped icon you can find screenshots of the NTP installation process.

3. Once installed, navigate to the following folder:

   C:\Users\<USERNAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Meinberg\Network Time Protocol\

4. Right click Edit NTP Configuration shortcut file and select Run as Administrator dropdown menu item:

5. Modify the file to set up your NTP server. The file contains helpful comments and details if you would like to customize the setup. For a simple solution, replace the contents of the file with the text below:

   Copy

       restrict 127.0.0.1
                                   restrict -6 ::1

                                   driftfile "C:\Program Files (x86)\NTP\etc\ntp.drift"

                                   server 127.127.1.0
                                   fudge 127.127.1.0 stratum 12

                                   server 0.pool.ntp.org iburst minpoll 6 maxpoll 7
                                   server 1.pool.ntp.org iburst minpoll 6 maxpoll 7
                                   server 2.pool.ntp.org iburst minpoll 6 maxpoll 7
                                   server 3.pool.ntp.org iburst minpoll 6 maxpoll 7
                               server pool.ntp.org iburst minpoll 6 maxpoll 7

6. Back in the windows manager, open the folder Service Control, then right-click the Restart NTP Service shortcut file and select Run as Administrator dropdown menu item:

7. Once the restart has completed, go back to the previous folder and double-click the Quick NTP Status shortcut file to confirm that multiple servers show up (this may take several seconds).

8. If the status displays a list of upstream servers, then everything if working correctly. Connect the camera to your computer to set up the link-local connection.

9. Open the command prompt and type the following:

   ipconfig

10. Record the IPvAddress that is associated with the ethernet adapter connected to the camera.

11. Open the In-Sight Vision Suite. Select the camera you have set up with link-local, and click the Time Settings button in the Utilities bar on the bottom.

12. Remove all existing IP addresses individually.

13. Add the IP address collected in step 9.

14. Click the OK button and then restart the device.

15. The initial date adjustment may take a minute or two, but should eventually match the date on the host computer. To confirm this, once the camera has rebooted, select the camera in In-Sight Vision Suite and again click the Time Settings button. The Current Time should have the same time as your host computer.

## Potential Issues

If the server is successfully up and running, but the time set of the camera is still not syncing, modify the host systems firewall settings for port 123 to allow UDP in and out.