in reply to Identify Client IP Address while using HTTP::Proxy

my $client_ip = $self->proxy->client_socket->peerhost();

seems to do the job.  Alternatively, you could use

my $client_ip = $request->header('x-forwarded-for');

which is the header set by the proxy itself (unless disabled), using the above method...