in reply to Adress of client opening a Unix session

It depends. You didn't provide enough information to help us help you.

How are you connecting? ssh sets the environment variable $ENV{ 'SSH_CONNECTION' } for me. Perhaps you have some similar information. Other connections may have this sort of information elsewhere.

Replies are listed 'Best First'.
Re^2: Adress of client opening a Unix session
by kurreburre (Acolyte) on Sep 09, 2004 at 12:45 UTC
    We have putty installed and the users cannot install new programs on the client, so we connect via ssh or telnet. cheers Kurre
      Didn't you read what I just said? I already mentioned that I see the environment variable SSH_CONNECTION with the remote ip address in it. If you noticed that you have this, then use it. If you don't have it, it's probably the fault of your SSH server or maybe a configuration script on your server deletes it.