connect to server
-
hello please help me i have the code below that i got from a few books Private Sub Connect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Connect.Click If ipB.Text <> "" And portB.Text <> "" Then chatB.AppendText("Requesting Connection" & vbCrLf) On Error GoTo ErrorM myclient = New TcpClient(ipB.Text, portB.Text) myclient.GetStream.BeginRead(mydata, 0, 1024, AddressOf DoRead, Nothing) Status.Panels.Text = "Requesting Connection..." chatB.AppendText("Connected..." & vbCrLf) chatB.AppendText("----------------" & vbCrLf) Status1.Panels(0).Text = "Connected to " & ipB.Text & ":" & portB.Text Timer1.Enabled = True a = InputB("Enter Nickname:", "Chat 2003") Send("nick:" & a) portB.Enabled = False SendB.Enabled = True Connect.Visible = False DC.Visible = True ipB.Enabled = False End If ErrorM: If SendB.Enabled = False Then chatB.AppendText("Please try again") End If End Sub somehow the code wont work. i keep getting "Please try again" im trying detect my college server with the coding is it possible?? or do i need something else?? can u tell me what else i need thank you in advance Gary