Now I want the server to realize such a function for each client login now number with IP must not think in the same local area net now different host IP network is the same as all cannot be judged by IP I now is by taking the client's MAC address to determine of rough but now I think of you is there a better way
CodePudding user response:
The meaning of the original poster is to identify different client, this requires using the hardware information method is appropriate,
Let the client program to take the machine's MAC, through a socket to the server, should is feasible, but show identification string is a string of MAC, may not be well understood,
CodePudding user response:
reference 1st floor xinhunter response: the meaning of the original poster is to identify different client, this requires using the hardware information method is appropriate, Let the client program to take the machine's MAC, through a socket to the server, it should be feasible, but show identification string is a string of MAC, may not understand, very good is there any other way? By taking not MAC address CodePudding user response:
refer to the second floor bljswpu response: Quote: refer to 1st floor xinhunter response: The meaning of the original poster is to identify different client, this requires using the hardware information method is appropriate, Let the client program to take the machine's MAC, through a socket to the server, it should be feasible, but show identification string is a string of MAC, may not understand, very good do you have any other idea to not through the way of get the MAC address Use the IP and port, can identify, CodePudding user response:
refer to the second floor bljswpu response: Quote: refer to 1st floor xinhunter response: The meaning of the original poster is to identify different client, this requires using the hardware information method is appropriate, Let the client program to take the machine's MAC, through a socket to the server, it should be feasible, but show identification string is a string of MAC, may not understand, very good do you have any other idea to not through the way of get the MAC address Take hardware identification, MAC is the most can guarantee can definitely get, other such as the mainboard serial number, the CPU serial number is not bound to get, with the brand, model have relations, some also have no, only MAC because communications needs, Windows have a common API can be obtained, so the MAC may be the most appropriate and effective, CodePudding user response:
reference songhtao reply: 3/f Quote: refer to the second floor bljswpu response: Quote: refer to 1st floor xinhunter response: The meaning of the original poster is to identify different client, this requires using the hardware information method is appropriate, Let the client program to take the machine's MAC, through a socket to the server, it should be feasible, but show identification string is a string of MAC, may not understand, very good do you have any other idea to not through the way of get the MAC address Use the IP and port, can identify, this seems to be no good because whatever is in the same physical machine their IP address must be the same port number must be different