Connection refused on WSL2

127.0.0.1 is WSL not Windows host

cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       xxx.example.com      xxx

and if VirtualBox run on Windows host, Vagrant won’t connect to VM there on 127.0.0.1

See also Windows11 Host + WSL + ansible to provision Windows Server/Client - #2 by mloskot