Hi everyone

I have a little problem with a socket that i'm using to get the current date and time for an serve, i can send the request, but i don't receive anything.

The current code:
vb.net Code:
  1. Dim sock As New Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)
  2.         Dim ip As Net.IPHostEntry = Net.Dns.GetHostEntry("time-a.nist.gov")
  3.         Dim iep As New Net.IPEndPoint(ip.AddressList(0), 123)
  4.  
  5.         sock.Connect(iep)
  6.         If sock.IsBound Then Debug.WriteLine("Connected...")
  7.  
  8.         sock.SendTimeout = 3000
  9.         sock.ReceiveTimeout = 15000
  10.         Dim bytesSent As Integer = sock.Send(SNTPData)
  11.         Dim bytesRec As Integer = sock.Receive(SNTPData)

The SNTPData has the correct size and the correct format.

The timeout and the error:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
What i'm missing here?

THanks