Any command to fly.io causes connection error on windows 11

Running e.g.
iwr https://fly.io/install.ps1 -useb | iex

causes:
iwr : The underlying connection was closed: An unexpected error occurred on a send.
At line:1 char:1

  • iwr https://fly.io/install.ps1 -useb | iex
  •   + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
      + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
    
    

This is on a clean windows 11 machine.

I installed it manually - and then got a similar error when running login:

flyctl : Error Post “https://api.fly.io/api/v1/cli_sessions”: read tcp
[2a00:23c7:9180:f01:7d92:e5a:6cbc:ee51]:49845->[2a09:8280:1:f28:246e:d6a:949:dbbf]:443: wsarecv: An existing connection was forcibly
closed by the remote host.
At line:1 char:1

  • flyctl auth login
  •   + CategoryInfo          : NotSpecified: (Error Post "htt...he remote host.:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

It must be some issue with connecting… but I’m not sure what could be causing it - I’ve got internet access.