You are viewing our Forum Archives. To view or take place in current topics click here.
How to Port-Forward a Minecraft Server (WINDOWS)
Posted:

How to Port-Forward a Minecraft Server (WINDOWS)Posted:

iLogey
  • Wise One
Status: Offline
Joined: Oct 21, 201310Year Member
Posts: 554
Reputation Power: 32
Status: Offline
Joined: Oct 21, 201310Year Member
Posts: 554
Reputation Power: 32
[ Register or Signin to view external links. ]


I know lots of people have trouble with port-forwarding on Minecraft so I'm going to try and help you.
I'm going to give you two methods of port-forwarding, just in-case you can't do one for whatever reason.


[ Register or Signin to view external links. ]
Ok, so the first method is the most common method and should work on almost all routers.
Head over to [ Register or Signin to view external links. ] and check what your router's default username and password is (unless you have changed it).
Then type "192.168.0.1" into your address bar.
The next part is different for (almost) every router, so I cannot really lead you step-by-step on what to do, but I'll do the best I can.
Ok, once you've logged in see if you can find a place named "Port-Forwarding" or something similar.
Once you are on there, you want to try and 'add a custom service' or just simply, 'add a service', or whatever it says.
Now, for the service name, you can name it whatever you want. Generally, you'd name it "Minecraft", but you can name it whatever you want.
If it asks you what 'Protocol' you wish to use, it should give you the option to select either TCP, UDP or both (some might not have both).
I believe Minecraft only uses TCP, but to be on the safe side, I always use both.
So, select both if you can, if you can't just use TCP and then do this again, but select UDP.
Now, you should get an option to identify what port you wish to use for the starting port and the finishing port. Enter both of these as "25565", which is Minecraft's default port, unless you wish to change it for some reason.
And then it will ask you to enter your IP address (or some will have it there already).
You will be using your internal IP address.
To find your internal IP address, press the Windows Key + R. It should open up the 'Run' box. Now, enter "cmd.exe".
Once in the command prompt, type "ipconfig".
You may get multiple results. If you do, look for one that says something like "Wireless Network Connection" (it will look like "Wired Network Connection" if you are wired, of course).
It should look a bit like this:
[ Register or Signin to view external links. ]

The one you're going to use is the "IPv4 Address". Normally, this will start with "192.168.0.xxx" (xxx being different for each person).
Go back to the webpage we were on to port-forward and enter your internal IP address into the box asking for an IP address.
Apply/save the settings and you should be port-forwarded!
Now all you need to do is open your Minecraft server's properties. This file is named "server.properties". You can open this with any text editor, like wordpad, or notepad.
Where it says "server-port=", enter 25565, or the port you set earlier.
And where it says "server-ip=", enter your internal IP address.
You should now be able to run your Minecraft server, and your friends should be able to join.
Your friends will need to connect with your external IP address, you can use a site like [ Register or Signin to view external links. ] to find your external IP address.


[ Register or Signin to view external links. ]
This method is not known by many. It also doesn't work for every router. I wasn't able to give much screenshots in method one, as I am unable to use that method. I will give as many screenshots as possible for this method, to be a bit more helpful.
This is for Windows 7, it should be similar for Windows 8 and Windows Vista.
If you have a different operating system, I'm sorry but I cannot help you.
Anyway, let's begin.

First, what you want to do is click the start button and go into "Computer" / "My Computer".
On the left side, you should see something called "Network".
[ Register or Signin to view external links. ]

Once in there, look under "Network Infrastructure".
[ Register or Signin to view external links. ]

Right click the item under there, and click "Properties".
It should bring you to something that looks like this:
[ Register or Signin to view external links. ]

Make sure you are in the "General" tab, and click the "Settings" button.
Note: if you do not have a "Settings" button, try disconnecting and reconnecting to your router. If that does not work, try restarting your router. If that doesn't work, this method probably does not work for your router.
Once in "Settings", it should look like this:
[ Register or Signin to view external links. ]

Click the "Add..." button.
[ Register or Signin to view external links. ]

In the box that asks you for a "Description of service:", you can put whatever you want, but I normally put "Minecraft TCP".
Once you've done that, you will need to get your internal IP address. I will just copy and paste what you had to do to find your internal IP address from method one, as it is the same.

To find your internal IP address, press the Windows Key + R. It should open up the 'Run' box. Now, enter "cmd.exe".
Once in the command prompt, type "ipconfig".
You may get multiple results. If you do, look for one that says something like "Wireless Network Connection" (it will look like "Wired Network Connection" if you are wired, of course).
It should look a bit like this:
[ Register or Signin to view external links. ]

The one you're going to use is the "IPv4 Address". Normally, this will start with "192.168.0.xxx" (xxx being different for each person).

Now enter your internal IP into the box (in my case, it is 192.168.0.3).
[ Register or Signin to view external links. ]

Now, use the port you want to use for Minecraft. The default and most-used port is "25565".
Put the port you want to use in both the "External Port" and the "Internal Port".
[ Register or Signin to view external links. ]

Now click "OK".
Now click "Add..." again, and this time do the same, except do UDP this time.
It should look like this:
[ Register or Signin to view external links. ]

Click "OK" and then "OK" again.
It may take a while to load after clicking the second "OK" button, just wait until it finishes loading.
Then click "OK" on the next box.
Now, you need to edit your "server.properties" file.
Once again, I will copy and paste what I have written for method one, as it is the same.

Now all you need to do is open your Minecraft server's properties. This file is named "server.properties". You can open this with any text editor, like wordpad, or notepad.
Where it says "server-port=", enter 25565, or the port you set earlier.
And where it says "server-ip=", enter your internal IP address.
You should now be able to run your Minecraft server, and your friends should be able to join.
Your friends will need to connect with your external IP address, you can use a site like [ Register or Signin to view external links. ] to find your external IP address.


Edit: I forgot to mention that you will need to join using your internal IP address. Your friends will join with your external IP address.

[ Register or Signin to view external links. ]
I currently only know of one alternative. I recommend you at least try to port-forward before using this method, as it can be a hassle for you, and your friends.

First, download Hamachi.
You can download it here: [ Register or Signin to view external links. ]
The "Unmanaged" version will work fine.
After downloading it, install it, just as you would with any other program.
Your friends will also need Hamachi to join your server.
Once on Hamachi, go to "Network" and "Create a new network".
[ Register or Signin to view external links. ]

Now, enter a Network ID and a Password.
Note: The Network ID and the password are case-sensitive.
Now, tell your friends your Network ID and password and get them to join your network.
Now, go into your "server.properties" file.
Change "server-port=" to any number you would like, or just use the default and leave it at "25565".
Now, change your "server-ip=" to your Hamachi IP.
To get your Hamachi IP, go into Hamachi and right click the numbers at the top, next to your name. Now click "Copy IPv4 Address".
[ Register or Signin to view external links. ]

Save the "server.properties" file.
Now, open up your server.
Use your IPv4 address to connect (from Hamachi / your Hamachi IP).
They will also need to connect using this IP address, give it to your friends or tell them to get it through Hamachi.
For your friends to get your IP, they will need to right click your name and click "Copy Address".
Your friends will need to have Hamachi and be in your Hamachi Network for this method to work.


I hope I managed to help at least one person with this tutorial. It took a while to write.
Good luck with your server!

If you know of any other methods to port-forward, or any port-forwarding alternatives. Please message me or reply and I shall add it to this post.

Edit: I've confirmed that Minecraft only uses TCP!


Last edited by iLogey ; edited 1 time in total

The following 1 user thanked iLogey for this useful post:

poopeyface (02-04-2014)
#2. Posted:
Descend
  • The Robin
Status: Offline
Joined: Mar 27, 201212Year Member
Posts: 503
Reputation Power: 23
Status: Offline
Joined: Mar 27, 201212Year Member
Posts: 503
Reputation Power: 23
Very nice thread for the inexperienced.
Great work iLogey.

Regards,
Matthew Robinson
-xbox360
#3. Posted:
iLogey
  • Wise One
Status: Offline
Joined: Oct 21, 201310Year Member
Posts: 554
Reputation Power: 32
Status: Offline
Joined: Oct 21, 201310Year Member
Posts: 554
Reputation Power: 32
-xbox360 wrote
Very nice thread for the inexperienced.
Great work iLogey.

Regards,
Matthew Robinson
-xbox360


Thank you.
It's just that I've seen so many posts of people telling people to join their server and they post their internal IP.
It's just a bit silly to me. lol
#4. Posted:
iLogey
  • Wise One
Status: Offline
Joined: Oct 21, 201310Year Member
Posts: 554
Reputation Power: 32
Status: Offline
Joined: Oct 21, 201310Year Member
Posts: 554
Reputation Power: 32
I have a feeling that this post is going to get buried very quickly. ):
#5. Posted:
hh
  • Gold Gifter
Status: Offline
Joined: Feb 27, 201311Year Member
Posts: 2,287
Reputation Power: 7224
Status: Offline
Joined: Feb 27, 201311Year Member
Posts: 2,287
Reputation Power: 7224
Nice topic man, this should help a lot of people.
#6. Posted:
iLogey
  • Wise One
Status: Offline
Joined: Oct 21, 201310Year Member
Posts: 554
Reputation Power: 32
Status: Offline
Joined: Oct 21, 201310Year Member
Posts: 554
Reputation Power: 32
jivy wrote Nice topic man, this should help a lot of people.


I hope so. I've seen sooo many people who have no clue what they're doing with servers.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.