Using Java to Query a Server for the Time

前端 未结 3 967
长情又很酷
长情又很酷 2021-01-20 19:24

I want to ask a server, whose IP I know, to send the date and time to a client.

How can I implement this in Java?

3条回答
  •  猫巷女王i
    2021-01-20 19:42

    Article describing the details: http://www.informit.com/articles/article.aspx?p=26316&seqNum=3

    client http://commons.apache.org/net/apidocs/org/apache/commons/net/ntp/NTPUDPClient.html

提交回复
热议问题