Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Request.getIp

Request.getIp($options={}) -> string|list

Description

Get the client IP address for the current request.

Request.getIp()
//= Ex: '123.45.67.543'

Option Value Description
all true/false Return a List of all IPs in the request, which might include proxies, etc.
Request.getIp(-all)
//= Ex: ['123.45.67.543', '54.321.234.12']

See Also