Problem in receiving NTP UDP packets

Hello,

I'm working in a project UDP NTP with wiz810mj module. I have written a code which i found in arduino in similar way. but after executing a program i'm unable to receive the packet (unable to understand the data which is receiving).
I'm new to the ethernet concepts. I have made all Source IP,Destination IP and Mac addresses to the module and the ping test also working fine.

Could any one help me how to get the NTP Clock data packet.

Thank you in advance

Are you using the UdpNtpClient example sketch from the IDE ethernet examples? Are you using a current NTP server IP?

The networking section may have been a better place to post subjects like this, but I will watch here for your response.

Thank You for your reply.

I am using UdpNtpClient example program from ethernet.

What version IDE are you using?
What IP are you using for the NTP server? That is the timeServer variable.

Thank You for your reply.

My problem of receiving data has been solved. But now i have another problem.
I want to know how to convert the receiving time to gmt time to display in serial terminal. As i understood that receiving packet data is converting to long integer but uart can transmit only 8bits. i have calculated the received time stamp. but as of watching in serial terminal i'm unable to display exact hour:minute:seconds.

Could you please suggest me how to convert the time stamp to display in serial terminal.

Thank you.

Look at the code in the UdpNtpClient example. It converts the Unix time to UTC (was GMT).