Jump to content

Recommended Posts

Posted

Just as a simple app I wanted something where by I could install either a service or app that runs in the system tray that could use tcp or udp sockets to communicate with a server application that had a GUI where it would display to start with just some info about the connected client computers ie

 

ip address, subnet mask, hostname , logged in username and maybe other info later on.

 

I did find this but it is more aimed at a chat app

 

Creating a Multi-User TCP Chat Application

 

Getting a bit confused now as I tried that along with a code project example etc and am not sure what bits of code I require and dont require as I dont want to replicate the info from one client to other clients I am only wanting the server application to be able to view this info in a list view or something of the likes

 

Help

Posted (edited)
Everything you need is in that article, although it's aimed at creating a chat app, all a chat app really is is two way text communication, all you need to do is make it one way. Your client app will contain all the code in the 'Sending Data' section, and your host app on the server will contain the code in the 'Receiving Data' section. The client will only be able to receive data if you tell it to and if another client is trying to send data to the IP address of the machine the client is running on, it won't automatically grab anything being transmitted. Edited by LosOjos
  • 3 months later...
Posted

Hi

 

I would move away from TCP for something like this and use UDP instead (less overhead), you could then also look at using broadcasting rather than requiring the IP address to be hardcoded or configued in the transmitting side of the application. The use of broadcast messages would depend on your network infrastructure though,

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...