I have an external program which broadcasts a string on localhost, port 2456 whenever a event occurs.
What I want to do is connect to and listen to this port and when a string is received save it to a variable so I can do something with it, I have tried searching the usual places, Google, vb forums, but all I can find is examples that can send AND receive data, all I want need to do is listen.
I have an inkling the solution would involve TCPclient but I know next to nothing about TCP to work it out for myself, If anyone can help me with the code or point me in the right direction it would really help me out.
Cheers.
What I want to do is connect to and listen to this port and when a string is received save it to a variable so I can do something with it, I have tried searching the usual places, Google, vb forums, but all I can find is examples that can send AND receive data, all I want need to do is listen.
I have an inkling the solution would involve TCPclient but I know next to nothing about TCP to work it out for myself, If anyone can help me with the code or point me in the right direction it would really help me out.
Cheers.