Hello,
I'm trying to get the current date/time from a (S)NTP server. It works
with UdpClient class, but not with TcpClient class. I want to use
TcpClient because i can set timeout values for reading/writing operations.
The connect method generate a SocketException (10060 : timeout error) :
try
{
IPAddress address = IPAddress.Parse(TimeServer);
TcpClient client = new TcpClient();
client.Connect(address,123);
}
catch (SocketException e)
{
....
}
Have you an idea ?
Thanks in advance.