Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

How get the HTTP_CLIENT_IP use phalcon?

How get the user client ip?



21.2k
Accepted
answer

You can try this:

// \Phalcon\Http\Request
echo $request->getClientAddress();

or

// \Phalcon\Http\Request
echo $request->getHeader("HTTP_CLIENT_IP");