I have the exact same problem, I cannot download the latest version automatically.
I'd love using the API instead, but I'm afraid it's not bedrock ready as I can't figure out how parsing the manifest.json in order to build https://minecraft.azureedge.net/bin-linux/bedrock-server-1.17.11.01.zip
This still affect 1.18.12.01
Can we have an ETA on this old but blocking port issue ?
[2022-03-12 09:49:26:096 INFO] Starting Server
[2022-03-12 09:49:26:096 INFO] Version 1.18.12.01
...
[2022-03-12 09:49:27:642 INFO] IPv4 supported, port: 19134
[2022-03-12 09:49:27:642 INFO] IPv6 not supported
[2022-03-12 09:49:27:927 INFO] Server started.
[2022-03-12 09:49:27:944 INFO] IPv4 supported, port: 19132
[2022-03-12 09:49:27:944 INFO] IPv6 not supported