Ntp Query

  • Follow


I have a question about how an NTP server is queried. How do you get
the time off a server? Does it use UDP? If I want to update the time
on my computer using an NTP server how would I connect to the NTP
server?
0
Reply karlobrien2 10/29/2003 3:56:44 PM

"moorefieldman" <karlobrien2@yahoo.com> wrote in message
news:c7b3dce2.0310290756.19fc3c9f@posting.google.com...

> I have a question about how an NTP server is queried. How do you get
> the time off a server?

    Yes, but that's really not its primary purpose. It's primary purpose is
to synchronize a clock to another clock. This is not the same as setting a
clock.

> Does it use UDP?

    Yes.

> If I want to update the time
> on my computer using an NTP server how would I connect to the NTP
> server?

    If you just want to get the time, google for SNTP. It will allow you to
send out a UDP query packet and get back the time that the UDP query packet
was received by an NTP or SNTP server. If you want to really synchronize
your clock, use the NTPD program itself. Reinventing the wheel is not
needed.

    DS


0
Reply David 10/29/2003 10:06:43 PM


moorefieldman wrote:

> If I want to update the time on my computer using an NTP server
> how would I connect to the NTP server?

You either install ntpd on your own box and let it peer or poll one
or several NTP servers out there, or you pull the time using e.g.
ntpdate.


  // Klaus

-- 
 ><> 	unselfish actions pay back better
0
Reply Klaus 10/29/2003 11:16:20 PM

2 Replies
255 Views

(page loaded in 0.054 seconds)

Similiar Articles:













7/23/2012 5:35:07 PM


Reply: