Minecraft Blogs / Tutorial

Host It Yourself - Windows Firewall

  • 33,627 views, 3 today
  • 6
  • 3
  • 8
Jaredwhamilton's Avatar Jaredwhamilton
Level 35 : Artisan Geek
4
Goal: In this tutorial, my goal is to show you how to keep Windows Firewall enabled, but allow the ports you need to host a Minecraft Server through the firewall.

Introduction:

Depending on who you talk to, some people might just suggest turning off Windows Firewall. While it's not really a huge deal to shut it off, it's always better to keep it enabled. It's always best to have a layered approach when dealing with security, and running a Minecraft Server is no different. While you cannot manage bans through Windows Firewall, you can control some very critical traffic that may come to your network. For Example, you may have some malicious users that join your server and eventually, they may decide to perform a DoS attack on your server. Using Windows Firewall, you can deny any traffic from their IP to your network, while in Minecraft all you can do is ban then from actually signing on. Please note that I am not saying that Windows Firewall will prevent a DoS attack, it is merely another layer in the security.

For this tutorial, I will be using my own computer as a demonstration which is running Windows 7 Enterprise x64. These instructions should be close or similar for any computer running Windows Vista and up, or Windows Server 2008 and up.

Necessary Information:

There are a few things that you will need to get started.
  • Administrative Access to your Windows Based Computer
  • Your desired port for your minecraft server
  • A list of other services you need to run, and their port numbers (Dynmap, Votifier, Web Server, etc)

Step 1: Open Windows Firewall
Once you're signed on to your computer using an administrative account, we will need to open Windows Firewall.

1. Click on the 'Start' Button
2. In the 'Start Search' box, type WF.msc
3. Press the 'Enter' Key - The 'Windows Firewall with Advanced Security' window should appear

Step 2: Add the Minecraft Server Port

1. In the 'Windows Firewall with Advanced Security' window, click on the 'Inbound Rules' button on the left

WFjpg

2. In the 'Actions' Toolbar to the right, Choose 'New Rule...' - The 'New Inbound Rule Wizard' will appear.

WFjpg
3. Choose the 'Port' option from the selection and click 'Next'
4. Make sure that 'TCP' is selected at the top part of the window
5. Select 'Specific local ports:' if it is not already selected
6. Enter the port number for your Minecraft Server - By default, the port is 25565 - Then Click 'Next'

WFjpg

7. Select 'Allow the connection' if it is not already selected and click 'Next'
8. In this window, you can select which connection profile that this rule applies to. You can find out what you've marked your connection as in the Network and Sharing Center, but if you're using a desktop computer that does not leave your house, you can just leave all three boxes checked (I believe two boxes if you're using a Home version of the OS) - Click 'Next'

9. Give this rule a name. I usually use something like 'Minecraft Server - TCP 25565'
10. Click 'Finish'

At this point, you have successfully allowed the Minecraft Server port through your Windows Firewall, while keeping all of the other ports secure. You can follow the same procedure above to add the ports for other services you may need for Minecraft, such as Dynmap (8123), Votifier (8192) or anything else.

I hope you found this guide useful, and if there is anything you think I should add to this post, feel free to let me know and I'll see what I can do!
Tags

Create an account or sign in to comment.

1
10/01/2013 1:57 pm
Level 10 : Journeyman Architect
quickhakker
quickhakker's Avatar
I tried this (1.6.4) and the server thing says that the port is already bound
1
01/16/2014 4:45 pm
Level 35 : Artisan Geek
Jaredwhamilton
Jaredwhamilton's Avatar
Actually, I just thought about this. I think the "Server thing" you're referring to is the console. If it says that your port is already bound, then you need to edit your server.properties file and change the IP. If you downloaded it from your existing host, it may have an IP in there. You can change it to 0.0.0.0 if you want to use the IP of your computer, or you can use your actual IP of the computer. You can check this by running IPConfig /all from the command prompt in Windows.
1
01/10/2014 5:18 pm
Level 35 : Artisan Geek
Jaredwhamilton
Jaredwhamilton's Avatar
What "Server thing"? If Windows Firewall won't let you add the port, then it may already exist. The other possibility is that you don't have administrative permissions to make changes to the Windows Firewall.
1
07/30/2013 9:35 pm
Level 9 : Apprentice Miner
mason8_8_8
mason8_8_8's Avatar
it still doesnt work
1
07/30/2013 9:18 pm
Level 9 : Apprentice Miner
mason8_8_8
mason8_8_8's Avatar
thank u
1
12/10/2012 10:53 am
Level 4 : Apprentice Warrior
mugetsu357
mugetsu357's Avatar
thank you this can help me when my server is done a diamon and a sub and a fav! :)
1
12/10/2012 10:53 am
Level 4 : Apprentice Warrior
mugetsu357
mugetsu357's Avatar
diamond*
1
12/10/2012 11:00 am
Level 35 : Artisan Geek
Jaredwhamilton
Jaredwhamilton's Avatar
Glad to hear it! Thanks for the support!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome