Hi there! My name is Ben a fellow member here in the community.
About this error, it usually happens as the Windows device sometimes restrictions action even though you are on Administrator access could be UAC (User Account Control), missing admin rights, or a Group Policy.
You can try the following steps to try and modify the settings by running Control Panel with Admin Rights:
- Close the Firewall settings window.
- Click Start → type
control panel→ Right-click → choose Run as administrator. - Go to:
- System and Security → Windows Defender Firewall → Allow an app or feature through Windows Defender Firewall.
- Try checking the boxes (Private/Public) for
Minecraft.exeagain.
I hope this helps but if there are still problems, just let us know and we will try our best to offer further assistance.