I am trying to query an NTP Server using c# to get the time of NTP server using the following source code from this thread How to Query an NTP Server using C#? .For some reason the flow stops at socket.Receive(ntpData).
1) Any idea why it is stopping?
2)How to get the time from a ntp server using windows command line so that if it works than my program should work .