954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

tcp server

i cant connect to my tcp server here is the partial code of my server

Public Sub New()
        InitializeComponent()
        server = New TcpServer(9988)
        clientCollection = New List(Of System.Net.Sockets.TcpClient)()
    End Sub


and here is for the client

Try
                        'connect
                        Dim hostname As String = "127.0.0.1"
                        Dim port As Integer = 9988
                        client.Connect(hostname, port)
                        connected = True
                    Catch e As Exception
                        running = True
                        MsgBox("Server Offline")
                    End Try


its for local only how can i connect if i use another computer thanks.

nemzmiyaw
Newbie Poster
15 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: