public function getHost()
    {
        $host = $this->getServer('HTTP_HOST') ?: $this->getServer('SERVER_NAME') ?: $this->getServer('REMOTE_ADDR');
        return preg_replace('/:\d+$/', '', $host);
    }