user691380
user691380

Reputation: 21

Time synchronization between server and Internet using Java

I have an assignment for developing a messenger for 1 server and 3 clients. I am facing a problem with time synchronization: I have to synchronize the server time with the internet and then synchronize the clients also. How can I accomplish this?

Upvotes: 2

Views: 7118

Answers (1)

Matt Ball
Matt Ball

Reputation: 359776

Use NTP to synchronize the different clocks. You'll want an NTP library, perhaps this one.

See also

Upvotes: 7

Related Questions