1. Open console editor
2. Do import
system.net.sockets
system.text
used for conversion between bytes and strings
So do the following code:
1. Dim client as net.sockets.tcpclient
2. Dim stream as networkstream = Nothing
You just created a new tcp client, and a stream for when the connection is made so we can send and receive information between the client and the server.
3. Make a connection attempt
For this you need a server and the IP address and port of the server.
This time your computer is also a server.
2. Do import
system.net.sockets
system.text
used for conversion between bytes and strings
So do the following code:
1. Dim client as net.sockets.tcpclient
2. Dim stream as networkstream = Nothing
You just created a new tcp client, and a stream for when the connection is made so we can send and receive information between the client and the server.
3. Make a connection attempt
For this you need a server and the IP address and port of the server.
This time your computer is also a server.
No comments:
Post a Comment