How to find "who" sent the command.

I’m using [Command] attribute to perform action on server.

Something like this:

[Command]
CmdPerformLogin (string credentials) {

}

What is a convenient way to know which host/connection/player
sent the command?

I use a system where every entity is assigned a unique string id, and then I just send the string on each remote call that needs it, then the local player can look up the actual object from a registry.