return IP address of client

When accessing the pipeline pilot server/protocol using http, is there a way within the protocol to return the IP address of the client? This is similar to getting the client IP address from a regular GET/POST request on the http server. This is not available as part of the standard global environment variables like @username in pilotscript, but can this be done using server perl scripts?

Thanks

Ken