How I said, I have client-side where will be stored something like a key, and server-side where will be the key received and checked if match. If yes, the player will be allowed to connect, else connection will be dropped... And I need to check it before the connection is completed.