Other things I’ve tried
Enabling ipv6
As seen in this topic
I checked if I had ipv6 disabled. It was enabled on wsl2 but not on windows, I enabled it on windows but it’s still not connecting
Scaling up the machine
I though the machine might be starving from resources, I made 1024 instead of 256
Testing postgres
When I connect using the fly cli proxy tool, I can successfully connect to postgres:
#fly proxy 5432:5432 -a master-db
Proxying local port 5432 to remote [master-db.internal]:5432
# telnet 127.0.0.1 5432
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Postgres is running correctly