TCPClient connection problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dschell
    New Member
    • Apr 2007
    • 1

    #1

    TCPClient connection problem

    Hi

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

    ////
    Dim tcpClient As New System.Net.Sock ets.TcpClient()
    'tcpClient.Conn ect("127.0.0.1" , 8000)
    Dim nPort As Integer = 2055
    tcpClient.Conne ct("127.0.0.1" , 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
Working...