Contao\Environment::server PHP Method

server() protected static method

Return the SERVER_ADDR
protected static server ( ) : string
return string The IP address of the server
    protected static function server()
    {
        $strServer = !empty($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : $_SERVER['LOCAL_ADDR'];
        // Special workaround for Strato users
        if (empty($strServer)) {
            $strServer = @gethostbyname($_SERVER['SERVER_NAME']);
        }
        return $strServer;
    }