in reply to Logging IP address of the machine

(assuming that you are using CGI)

You can check the IP of the computer connecting to you through: $ENV{REMOTE_ADDR}

The machine that the script is running on is: $ENV{SERVER_NAME}



The User agent: $ENV{HTTP_USER_AGENT} is only good for the browser name and version. Hope this helps. If you aren't referring to a CGI/Web app, please mention what you are using.

   --jb