Original Post
I'm a student currently working on a project with some guy from overseas. For the networking, I've used Java's knock knock client/server tutorial (the multi threaded one), and added my own Listener to reduce class coupling. My problem is that the server class is dumb. All it does is receive a string and notify that a string is received (ServerListener). But It doesn't let me know which client (player) had sent the message or let me reply to only an individual client. Two problems arise when I try to fix the problem: The first is security, how can I be sure the request is a player and not a hacker? The second is identity, how do I know which player the message is from? I'd like to have a list of unique usernames (or id's) and be able to send replies to individual clients. Please give me your solution if you have experienced this problem yourself.