The predefined rules in the Windows Firewall have the fixed ports:
World Wide Web Services (HTTP Traffic-In) - 80
World Wide Web Services (HTTPS Traffic-In) - 443
You should create your own rule and apply it for (!!!) all programs.
Thanks for details from:
Why does it have "Apply to all programs and services" and not just the "World Wide Web Publishing Service / W3SVC"?
How to enable “World Wide Services (HTTP)” in the firewall using command line?