Is the machine you’re using a personal machine? Or issued by a company/employer?
You’re certain you don’t have any other antivirus, security, or firewall applications running?
Are you running other developer applications simultaneously? Apps like MAMP, XAMPP, or Docker for example.
Could you share some screenshots of the pop up and your hosts file settings?