How get the user client ip?
You can try this:
// \Phalcon\Http\Request echo $request->getClientAddress();
or
// \Phalcon\Http\Request echo $request->getHeader("HTTP_CLIENT_IP");