Hi All,
When I connect to a unix server from a client machine,
how can I get the IP address of the client?
One way of retrieving IP address of client which initiates an active connection to the server is through /var/adm/utmpx file
upon login; client's IP address and other info would have been dumped into the file,
I just made use of utmpx structure to read the file with identification of line I am currently working and the loginname I was able to retrieve the client's IP address.
And that is how
who command works
i just found one such similiar thread.
similiar thread
But I am searching for a method, to directly determine the client's IP address without depending on a file.
Any pointers on that!!!
Thanx in Advance.