By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,943 Members | 1,921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,943 IT Pros & Developers. It's quick & easy.

TCPClient connection problem

P: 1

I am trying to make a connection with System.Net.Sockets.TcpClient() but I am getting an error at the line of conection

Dim tcpClient As New System.Net.Sockets.TcpClient()
'tcpClient.Connect("", 8000)
Dim nPort As Integer = 2055
tcpClient.Connect("", nPort) << here is the error

1) What port can/must I use?
2) Must I enable it in Windows Firewall ?

Note: I have nod32 antivirus and I do know if it is disabling the port

Thanks in advance
Apr 24 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.