If you’re on Windows it’s likely that some security, antivirus, or firewall application is blocking Local from making connections. You may need to check around that Local isn’t being blocked anywhere and has the permissions it needs. You can start here:
Are you running other developer applications simultaneously? That could also cause similar issues. Apps like MAMP, XAMPP, or Docker for example.