in reply to Determine ip address/hostname of requesting host
Is this a CGI application? CGI servers set $ENV{REMOTE_ADDR} to the IP address, and sometimes (configurable in Apache) set $ENV{REMOTE_HOST} to the reverse lookup of the IP address.