tcpClient slow to connect

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top