Disable Firewall For Minecraft

Posted on  by 

My sons play Minecraft. I recently decided to let them play head to head on the same server. Aside from the financial aspect (I had to buy a second account) it was fairly straightforward running the server. The one thing that tripped me up was a firewall rule that prevented a remote client machine from connecting to the server. Fix was pretty simple.

When running the server, the log showed:

Disable Firewall For Minecraft

And so I knew that my firewalld configuration would block it. Killing firewalld and flushing the iptables rules confirmed it:

Disable a pop-up blocker on a web page. If a web page tries to send you a pop-up when your blocker is turned on, an information bar will appear at the top of your browser window. Clicking the Preferences button within the information bar will allow you to: Allow pop-ups from this site; Edit your pop-up blocker options. Feb 25, 2021 Then tap on “Windows Defender Firewall” to bring on the firewall settings. Now “Allow a feature or app through “Windows Defender Firewall”. You must have access to the PC as an admin to do all of these. Now go ahead and disable the firewall for Minecraft and try to connect again to see if the hostname issue will be gone now. Press Windows Key and type Windows Defender Firewall. On the left, you will see a Control Panel Screen, here click on Turn Windows Defender on or off. In the Customize settings Window, click on the radio button that says Turn on Windows Defender Firewall (both under Private network settings and Public network settings) 4.

But I don’t want to run without a firewall.

Disable Firewall For MinecraftRemove firewall minecraft

I want to open port 25565. To do so, I need to figure out what zone holds the firewall rule blocking it, and add a rule that opens this port.

Disable Firewall For Minecraft

Simple enough; I only have one zone (Fedora 21 default setup)

I want to only open this port when I fired up the game, I would probably be better off with a sudo rule that I embedded into the game startup script that opens the port dynamically, but I can do this by hand.

and then closes it upon shutdown:

If I was setting up a machine to be a dedicated server, I would want this port to always be opened.

Did that work?

Not yet. So far I’ve only said that the port should be written down to be opened in general. I want this to be persisted.

Now it is open and will be kept open. How: it gets written in to the firewalld config file. If you run

Firewall

In there you should see a line that contains:

If you decide to disable the server and want to close the port:

What if we want to name this port? We know that the client must look for port 25565 Even if it isn’t in /etc/services. We can name this port “minecraft-server” at least for firewalld purposes. Create this file:

Now, instead of the above commands:

To query:

To Enable:

And to Disable

How To Disable Firewall For Minecraft Lan

Disable

How To Disable Firewall For Minecraft Mac

And use the –permanant flags and –reload if you want to make these changes survive a reboot.

Coments are closed