private function isLoopback(): bool
    {
        if ($this->isIPv6) {
            return $this->compact()->address == '::1';
        }

        return (ip2long($this->address) & 0xff000000) == 0x7f000000;
    }