TCP Messenger (LAN) Application

489 views Asked by At

I have developed an application to send message via TCP client and Listener. I am using a ComboBox and ping system to test which PC is online in the network.

How can I restrict the list to only those PCs on which my messenger application is running?

1

There are 1 answers

5
joehanna On

I am assuming it is running on a local network...

You should build in message "types" into your app. You can then send out a broadcast "is anyone there?" message. You do this using the broadcast IP subnet address x.x.x.255.

All PCs running your app should interpret the "is anyone there?" message and respond with a "I am here" message type. Collect them and populate your combo box.