Make a distinction between TcpClient in C #

How can I, as a server, distinguish between the TcpClient that connects to me? As a client, should I always send a username or something from which the server can know who I am?

+5
source share
2 answers

I usually use client-side data in a service to identify the client. Identifiers I use:

Lan and wan ip addresses, computer name, username, operating system,

in addition to your comments, I would suggest creating a client class inside the server that processes variables that have already been passed by the client, so you do not need to resubmit the username, etc.

+1
source

, . , - ( ). .

0

All Articles