src/Web/RequestHelper.php
public function getUserIP()
    {
        foreach ($this->ipHeaders as $ipHeader) {
            if ($this->getHeaders()->has($ipHeader)) {
                return trim(explode(',', $this->getHeaders()->get($ipHeader))[0]);
            }
        }

        return $this->getRemoteIP();
    }
public function getUserIP()
    {
        foreach ($this->ipHeaders as $ipHeader) {
            if ($this->getHeaders()->has($ipHeader)) {
                return trim(explode(',', $this->getHeaders()->get($ipHeader))[0]);
            }
        }

        return $this->getRemoteIP();
    }
Returns the user IP address.
The IP is determined using headers and / or `$_SERVER` variables.
@return string|null user IP address, null if not available