Visual Basic:
Dim ipaddress As Net.IPAddress
Dim localAddr As Net.IPAddress = ipaddress.Parse("127.0.0.1")
Dim port As Int32 = 13000
Dim server As New TcpListener(localAddr, port)
server.Start()
Console.Write(">>>>>>>" & Chr(10))
Dim tSocket As Net.Sockets.Socket = server.AcceptSocket
Dim timeDate As String = Now()
Console.Write("[" & timeDate & "]" & Chr(10) & " Server started (type help for more information)" & Chr(10))
The console stops as soon as I declare tSocket and doesn't do a thing. What's wrong?
Last edited: