Why is Windows Defender Firewall blocking an inbound port?

I have Windows 11 and am using Xfinity as my ISP.
I have port forwarded Port 2346 in my router.
In Defender Firewall I have set up an Inbound Rule for Port 2346 to "Allow the connection."
Defender Firewall is still blocking the port. I know it is Defender Firewall because if I turn it off then the port is no longer blocked. When I turn Defender Firewall back on the port is blocked.

How do I fix this so that I can keep Defender Firewall running and not block the port?

Good day Mock26, thanks for your question. I am glad to be able to provide assistance to you today. If you put in a custom inbound rule for port 2346 then you can press Windows key + R and from the run box type in control panel and press Enter or click OK and then click on System and Security and then click on Windows Defender Firewall and then see from the left side Allow an app or feature through Windows Defender Firewall and check/look for this rule that you have put in place if it is there and then check if it has a tick or no tick next to it as this is the basis if it is allowed or not and you will be able to select as well if it will be allowed on a private or public network.

Regards,
Paul R.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

It is checked for both Private and Public. The port is still blocked.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Just to check, for which app/program is this intended for?

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

It is for a game called MegaMek. I had no issues with setting this up on my old laptop which used Windows 10. But for some reason it is not working on Windows 11.

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi , Mock26.

I am Ivan, I will help you with this.

Go to start menu right click select Terminal(admin)

Run the command one at a time below:

netsh advfirewall firewall add rule name="Moon UDP" dir=in protocol=udp localport=2346 action=allow

netsh advfirewall firewall add rule name="Moon TCP" dir=in protocol=tcp localport=2346 action=allow

Restart your computer and run the test.

Independent Advisor - Community
Thanks
Yours sincerely,
Ivan Carlos.

4 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 17, 2025 Views 8,625 Applies to: