I am working on writing a program that needs to send a command to a specific port on the same computer, I have that working fine. There is another piece of software running that is listening to that port for some commands (read on).
However when I try to send a command I get no response...
I have been given a list of protocols that I need to send to that port. What I have been told is that the size (in byes) is 1 and the value is "0x33" with no parameters.
I am completely new to sockets and sending data through tcp, can I be lead in the right direction or get some assistance?
VB.NET:
Dim myTcpClient As New TcpClient
myTcpClient.Connect("127.0.0.1", 61225)
Dim networkStream As NetworkStream = myTcpClient.GetStream()
VB.NET:
Dim outStream As Byte() = System.Text.Encoding.ASCII.GetBytes("0x33")
networkStream.Write(outStream, 0, outStream.Length)
networkStream.Flush()
I have been given a list of protocols that I need to send to that port. What I have been told is that the size (in byes) is 1 and the value is "0x33" with no parameters.
I am completely new to sockets and sending data through tcp, can I be lead in the right direction or get some assistance?