Click here to Skip to main content
15,910,234 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I Want to build an application in two parts. one of them will be installed on the server and another one on the client. and i want to send data between them.
my purpose is collecting hardware information from my network clients.
how should i do that?
of course i know how to get hardware information from wmi, but i don't know how should i make a agent
please help me.
thanks
Posted

Use the Socket Class[^] or a TcpClient [^]and a TcpListener[^]

The links all have examples with code.
 
Share this answer
 
thanks bru. I'll test these links.
can i write a windows service for client? if yes, how should i connect to the client system and call that particular service?
 
Share this answer
 
Comments
BobJanova 4-Apr-11 8:01am    
Yes, you can write a service, and services can use sockets just like a normal app, though remember that you shouldn't produce user interaction (i.e. message boxes if there is a failure) in a service. You need to have access to the client machines to install the service; if this is for a company LAN talk to your IT department to get it installed on everyone's machine.
mahdi87_gh 5-Apr-11 3:59am    
thanks. very helpfull

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900