tcpClient slow to connect

  • Thread starter Thread starter Jonny
  • Start date Start date
J

Jonny

Hi all,

I am brand new to vb.net, so I am guessing I am missing something obvious.

The following line takes 8 or more seconds to connect. Once it connects, it works fine. Why is it so slow to connect? Could it be trying to do a DNS lookup (which will fail with the IP address I am using)?
mobjClient = New TcpClient("217.168.167.251", 5000)

Note: for security, the IP address in my example is fictional.

Thanks!
 
Back
Top