$c = $r->connection; $addr = $c->remote_addr( [$addr] ); $str = $c->remote_host(); $str = $c->remote_ip( [$ip] );