I continue my Minecraft Server Setup outline in part 2 talking about settings for your router that make it possible to keep the local IP address the same, setting up port forwarding, and an additional trick that I had to go through to allow others to access my sever, but first a reminder: I write this article from the standpoint of someone that knows a little bit about networking. I will not go into detail on how you should deal with your router or modem because routers and modems have different setups and ways of adjusting settings.
In Part 1, I mentioned at the end that simply setting up a server on a second computer is one part of the process. While you can play on your server, you will have to alter the local IP address you use to log into the server every time your router changes it. I used this method for awhile without any problems because my router does not change it very often. The problem is when the IP addresses for your network do change, sometimes you do not realize the change occurred and you spend hours trying to troubleshoot your server connections without realizing you are using the wrong IP. To get around this, you want to create a static IP address for your server. On my router, I just had to go into the DHCP Reservation options and tell the router to reserve the IP address I already have for my server. Now when the IP addresses get reassigned, the router will apply the same IP to my server. To set this up on your router, check your owners manual or the manufacturer’s website.
Now I will briefly go over Port Forwarding for your router since I’m already talking about your router settings. Port forwarding is a way to tell your router to route specific traffic over a port to a specific device on your network. In this case, we want to forward the Minecraft server port to our Minecraft server. To do this, you need to access the port forwarding section of your router settings. Once again, different routers have different ways of setting up port forwarding. There is a great website called PortForward.com that can help you setup port forwarding for yours specific router. Basically, you want to forward traffic on port 25565 to the IP address of your server. Make sure that both protocols UDP and TCP are selected. In Part 1, I used the example 192.168.1.110 as the local IP address of the Minecraft Server on a network. We will use the same IP address you discovered using the steps outlined in Part 1 when setting up port forwarding.
Next, we need to check to see that our port is open. To do this, go to a website like CanYouSeeMe.org and type in the port for your Minecraft server. 25565 is the default port and will not change unless you adjust your Minecraft server properties. Click the check button and see if you get a success message. In a lot of cases, that should be the last step you need. Now you can give your IP address out to your friends and they can log into the server. Keep in mind that you have to give your friends your actual IP address not your server’s local IP address. The Can You See Me website will display your IP address. Unless your IP address is static, this IP address will occasionally change, so if your friends or family ever have connections issues when you can connect locally, recheck your IP address by going back to CanYouSeeMe.org or another website like WhatIsMyIP.com
If you are like me, you may find that your port is still blocked even after setting up port forwarding. First, double check that you set up your port forward correctly. Check your router’s settings and double check the steps at PortForward.com. If everything looks right, you may have to adjust the settings on your modem as well to forward the port as well. This was one problem I encountered when I setup my own Minecraft server. Even though the port was open on my router, it was not open on my modem. Every modem is different so you need to find out how to change the settings on your specific modem. Once you do, you need to forward the 25565 port to your router. Keep in mind the IP table that your modem sets up is different than the IP table that your router sets up, so you need to find out how your modem assigns IP addresses. If you have a modem to router setup then everything else connects to your router, your modem will only have two IP addresses: one for the modem and another for your router. Once you find your router’s IP address as set by the modem, setup port forwarding to your router using the Minecraft server port 25565. Once that is done, head to CanYouSeeMe.org and check your port again. Once I setup port forwarding on my modem and router, my port worked and my family could connect.
If you have done all that and your port is still closed, I would suggest doing additional research. Maybe call your Internet service provider and ask them how to setup port forwarding on their modem. If you have no clue what you are doing, I suggest purchasing a monthly server setup hosted by a company that will handle the server for you.
Hopefully someone finds this information helpful. If not, at least I tried to provide some insight into one way to setup a server. Feel free to comment and maybe share your suggestions for running a Minecraft server. If you have questions, you can ask, but I won’t guarantee that I will know the answer.