source/Core/UtilsServer.php
public function getRemoteAddress()
    {
        if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
            $sIP = $_SERVER["HTTP_X_FORWARDED_FOR"];
            $sIP = preg_replace('/,.*$/', '', $sIP);
        } elseif (isset($_SERVER["HTTP_CLIENT_IP"])) {
            $sIP = $_SERVER["HTTP_CLIENT_IP"];
        } else {
            $sIP = $_SERVER["REMOTE_ADDR"];
        }

        return $sIP;
    }
public function getRemoteAddress()
    {
        if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
            $sIP = $_SERVER["HTTP_X_FORWARDED_FOR"];
            $sIP = preg_replace('/,.*$/', '', $sIP);
        } elseif (isset($_SERVER["HTTP_CLIENT_IP"])) {
            $sIP = $_SERVER["HTTP_CLIENT_IP"];
        } else {
            $sIP = $_SERVER["REMOTE_ADDR"];
        }

        return $sIP;
    }
public function getRemoteAddress ( ) { if ( isset ( $ _SERVER [ "HTTP_X_FORWARDED_FOR" ] ) ) { $ sIP = $ _SERVER [ "HTTP_X_FORWARDED_FOR" ] ; $ sIP = preg_replace ( '/,.*$/' , '' , $ sIP ) ; } elseif ( isset ( $ _SERVER [ "HTTP_CLIENT_IP" ] ) ) { $ sIP = $ _SERVER [ "HTTP_CLIENT_IP" ] ; } else { $ sIP = $ _SERVER [ "REMOTE_ADDR" ] ; } return $ sIP ; }
Returns remote IP address

@return string
Returns remote IP address