Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NTP time server

Status
Not open for further replies.

jaredgalen

Programmer
May 28, 2003
34
LT
I have a piece of code that is supposed to get the time off a unix host acting as an ntp time server, the problem is that the computer I'm running it on has no access to the internet so I can't use any of the public ones.

Would anyone have a piece of code that would mimic this time server that I can run locally, or even give me a few pointers as to how I would write my own app.

I'm a newbie to C so any help is appreciated

jG
 
Okay, maybe I should be more precise. I'll be using two machines, a windows on the same network as the unix one.

I need to set up the unix machine so that it will accept and respond to the time request, it needs to have the NTP protocol enabled, I think.

An ideas?????
jG
 
Well on the unix machine, you simply enable the 'ntpd' (Network Time Protocol Daemon).

In Redhat 8 (which I have here), I run Server Settings->Services and tick the NTPD checkbox and the jobs done.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top