Solution for Windows 11 PRO using Group Policy:
Open Group Policy Editor: Search for and open the Local Group Policy Editor by typing gpedit.msc in the search bar.
Navigate to Firewall Settings by going to the following path:
Computer Configuration > Windows Settings > Security Settings >...