public static function getIp(ServerRequestInterface $request)
    {
        $ips = self::getIps($request);

        return isset($ips[0]) ? $ips[0] : null;
    }
public static function getIp(ServerRequestInterface $request)
    {
        $ips = self::getIps($request);

        return isset($ips[0]) ? $ips[0] : null;
    }
public static function getIp ( ServerRequestInterface $ request ) { $ ips = self :: getIps ( $ request ) ; return isset ( $ ips [ 0 ] ) ? $ ips [ 0 ] : null ; }
Return the client ip.

@param ServerRequestInterface $request

@return string|null
Return the client ip .