If Minecraft multiplayer or a local server is being blocked on Windows 10, allow the legitimate Minecraft or Java application through Microsoft Defender Firewall instead of disabling the firewall. The exact executable depends on whether you use Minecraft for Windows, Java Edition, or a dedicated server.
Allow Minecraft through Microsoft Defender Firewall
- Open Windows Security and go to Firewall & network protection.
- Select Allow an app through firewall.
- Choose Change settings with an administrator account.
- Find the relevant Minecraft, Minecraft Launcher, Java, or server entry. If it is absent, add the legitimate executable from its installed location.
- Allow it on the network profiles actually required. For a home LAN, that usually means the trusted private network rather than every public network.
- Save the change and test the connection again.
Do not open ports unless the scenario requires it
Simply playing Minecraft as a client normally does not require manually forwarding router ports. Hosting a server for connections from outside your home is a different task and can require router configuration, firewall rules, and additional security considerations.
Check the error before changing security settings
Sign-in failures, Microsoft/Xbox account restrictions, server outages, version mismatches, and network problems can look like firewall trouble. If allowing the correct app makes no difference, restore unnecessary firewall changes and investigate the actual error message.
Keep the Windows host supported
Standard Windows 10 support ended October 14, 2025. If this gaming PC supports Windows 11, migrating the host is preferable to weakening security controls on an aging Windows installation.
If the game was installed through an official launcher, verify or repair its files there before creating increasingly broad firewall exceptions. A damaged installation is not fixed by allowing more network access.
Private and public network profiles matter
Windows applies different firewall rules depending on the network profile. A home network you control can normally be classified as private, while coffee-shop, hotel, and other untrusted networks should remain public. Do not mark an unknown network private merely to make Minecraft connectivity easier.

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.