Help me RTC 3231

hi guys I have arduino leonardo with ETH POE I would like to know how to synchronize my RTC with any call to my network server. How can I ask now on the server? and how do I set it RTC?

My RTC is DS3231

HELP

Thank you

I would like to know how to synchronize my RTC with any call to my network server.

Is your Arduino acting as a client? Is it only talking to a NTP server? If the Arduino is a client, and you are not just talking to an NTP server, you have no guarantee that the server will include the date and time in the response to the GET request.

If the Arduino is acting a server, it needs to also act as a client, to make GET requests to an NTP server. There are plenty of examples of the Arduino doing just that.