How to get the IP address / Host name of client machine

Hi

How to get the IP address / Host name of a particular user connected to Unix Server.

For example: If used 'DevUser1' is connected to Unix server. I need to find out from which PC this connection has been made.

How can this be achieved?

Thanks

you can use last command to find the ip/hostname of system from which user is connected. the list is a bit long, so u can use
last <username> to get the details

using "who" command will show the terminal or IP address as well :slight_smile:

Thanks!

I have a Log file with userID, date and time of login and /dev/pty/xx. I want to know from which computer or site did the user login

I am not sure if I have understood your concern.

However you can try the command last as below and get the details

or

the same is not possible with command who as its only going to display the status of current logged in user.

Try 'who' command there it will show IP address from which box you jumped