Can't get serverless to work on my Mac

I’m trying to use Serverless on a Windows laptop and an Intel 2019 iMac. Everything works perfectly on my laptop but on the iMac terminal, the Serverless framework can’t seem to connect to any server or the internet at all. If I run serverless login or serverless deploy, nothing happens and I get a Socket connection timeout error eventually. This has been happening for two days.

I’ve tried reinstalling serverless, including switching to v2. I’ve checked the internet is working, including from the terminal.

Any advice?