You could use the command:
server:~# pinky
that will give to you something like this:
Login Name TTY Idle When Where
root root pts/0 2020-06-15 13:41 192.168.1.133