[ntp:questions] xntp both serve and client

Steve Kostecke kostecke at ntp.org
Thu Nov 6 05:15:55 UTC 2008

On 2008-11-06, Hal Murray <hal-usenet at ip-64-139-1-69.sjc.megapath.net> wrote:

> If you are running in client only mode, you don't really need
> to use port 123 on the local system.  It could use any port number,
> but it might take a while to modify the current source code to
> do that.

The NTP port is set in ./include/ntp.h:

 * NTP protocol parameters.  See section 3.2.6 of the specification.
 #define NTP_VERSION     ((u_char)4) /* current version number */
 #define NTP_OLDVERSION  ((u_char)1) /* oldest credible version */
 #define NTP_PORT        123     /* included for non-unix machines */

Changing the port that ntpd uses is trivial.

Changing ntpq/ntpdc to work with your modified ntpd is a different

Steve Kostecke <kostecke at ntp.org>
NTP Public Services Project - http://support.ntp.org/

More information about the questions mailing list