Client/Server

dotdotnet

Newcomer
Joined
Aug 19, 2003
Messages
9
I am writing a simple messaging window service which consist of 1 registryserver and 1 or more clients. What the client does is each time it receives some packet at a listening port, it will be required to retrieve the ip of the sender and forward the ip address (and preferably Mac address) to the registryserver. The registryserver simply returns a unique id to the respective client.

My questions are, how do i retrieve the ip address of the sender which is sending messages? How do i actually send or receive the messages? if possible, can give me a little guide on how to perform simple client/server messaging, i.e. what are the classes i should look at, sample codes perhaps, etc?

For such connections, would it be good to use TCP or UDP?
 
Back
Top