Configure Your Minecraft Server Firewall
To understand the firewall a bit more, you need to look into how Linux Minecraft servers are typically set up. Any external network is separated from your Minecraftâs internal network by a firewall. In absence of a firewall rule, your router acts as your firewall – preventing anyone on the internet from being able to access your Minecraft server.
Earlier in this guide under the prerequisites section, there is a note around allowing a firewall rule:
-A INPUT -p tcp âdport 25565 -j ACCEPT
Here are some of the most common port numbers and network services that use them:
- HTTPS: Port 443
- Minecraft Server: 25565
- FTP or File Transfer Protocol: 21
When you install the Minecraft servers on Ubuntu or Debian, the default settings currently only allow SSH traffic to be able to access this server and block every other request. Minecraft uses the port 25565 to allow connections to a server which means you need to enable traffic to pass through this port. For more information, seeHow to Configure a Firewall with UFW.
You can also add a firewall rule using the ufw by running the following command:
sudo ufw allow 25565
When you do this, here is what you are trying to accomplish with this configuration:
You configure our Linode to have a port-forwarding enabled to allow traffic on the port 25565 and forward it to the Minecraft serverâs IP.
Your Minecraft client then adds a server to the address e.g. 192.0.2.0:25565 to connect with the Lincraft server created in the previous section.
How To Setup A Minecraft: Java Edition Server
Note: This guide shows you how to set up and configure a Minecraft Server. However, doing this requires changing your home network’s configuration and is not recommended unless you know what you are doing. If you wish to purchase a small private server for friends, check out Minecraft Realms. If you still wish to set up your own private server, do so at your own risk as we cannot offer support for home networks or privately made servers.
Here is a guide to help you create a server so your friends can join and play together!
As a prerequisite, you should make sure you have Java installed and up to date on the computer that will host the server so it can run .jar files.
How To Make A Minecraft Server On Windows
The first step in how to create a Minecraft server on Windows is to make sure you have the most recent version of Java installed on your computer. If you donât already have Java installed, you can download it from Oracle or JDK.
To check to see if you have the latest Java version installed and update if you donât, do one of the following:
- Find and open Java in the Windows Control Panel and click Update Now.
- In a command window, type: java -version to get your current version number. Check the Java website to see if itâs the latest version available.
Once you verify that you have the latest Java, take the general steps above to get your server running.
Don’t Miss: Can You Play Minecraft On Switch
Start Your Minecraft Server
java -Xmx512M -Xms512M -jar minecraft_server.jar nogui
To make sure everything is running correctly, stop your server with:
Then edit the server.properties file and set:
Save the server.properties file and restart your server. From there, enter your server IP address into the Minecraft Server Status Checker to see if its publicly accessible.
How Do I Make My Own Server On Minecraft
The process of creating your own Minecraft server is pretty straightforward. Here are the essential steps you need to take:
- Get Minecraft Java Edition
- Secure the Latest Version of Java
- Create a folder thatll hold all your Minecraft files
- Copy the server.jar file to your folder
- Right-click the icon and click open to run the server.jar file
- Open the EULA text file
- Change the line eula=false to eula=true, and save it
- Open the server.jar again to launch the server
You now have a server officially launched and ready to use.
Recommended Reading: How To Install Mods On Minecraft Java
Selecting A Server Version
Minecraft is arguably the best sandbox game ever made. This means that you can make a limitless number of changes to the game itself, as well as construct whatever you want in the game. When constructing a Minecraft server, you can predetermine what the Server can accomplish by selecting the type of Server you want to create. When creating a Minecraft server, you can choose the sort of Server you want to make and thus predetermine what the Server will be able to perform.
Because they are much easier for players to connect to, the best Minecraft servers are mostly built on Spigot and plugins, but there are many more popular types. All of the needed server files will be produced when you start the main server executable, and you will be able to edit them after the initial boot. There are a number of different server versions to choose from, which you can learn more about below before deciding.
Connecting To Your Minecraft Server
Now lets connect to the server. The very first step is to run our batch file to launch the server.
With the server launched, open your Minecraft launch page and make sure you load the version of Minecraft that matches the jar you downloaded. As of the writing of this article, Minecraft version 1.15 was the latest version and the server that was downloaded. However, if this becomes outdated I can make a new server or simply load up the 1.15 version of Minecraft. It will be a good idea to make a launch version of Minecraft that we can always connect to our server with. To do this you can go to the Installations tab and click the +New button.
Once here, you should name the installation with the server and version number of Minecraft and select the version as the release number your server download is. This is shown below for version 1.15 so make sure you change this to your Minecraft server version. Make sure to click create to finish this installation.
Next find it in your list and click Play to launch Minecraft.
Once Minecraft is launched go to the Multiplayer tab.
Once in the multiplayer tab, click Add Server.
Once this is done you should see your server made and trying to connect. If you have a failed connection, check the ip address you entered as well as the port forwarding settings. If you see a green connection bar with open spots to connect to your server, you can launch in and enjoy playing in your very own custom server!
Read Also: How To Add Skins On Minecraft
What If You Dont Want To Host Your Server At Home
Hosting any kind of server from home means youre exposing your home network to the world.
If youd rather not take that risk, then you can use a hosting provider instead. Youll need to pay a monthly or annual fee, but you wont have to deal with the hassle of managing the server hardware.
A GoDaddy Virtual Private Server is a good fit if youre just getting started. Just keep in mind that youre sharing hardware with other users, so keep an eye on resource usage.
If you need a little more oomph and you want to hook up a lot of players, you might try a dedicated server instead.
Host A Minecraft Bedrock Server For Free
With that, you now hold the power to jump into the even-increasing Minecraft community with a Bedrock server thats truly your own. In a dedicated server, whether you want to explore ancient cities or just hang out with your friends is totally up to you. One of the most common ways my circle uses such servers is by building Minecraft houses. Such a thought-stimulating time is even better than bonding over the best co-op games. But make sure that your group is dressing up for the part. A server with a bunch of default protagonists is no fun. So, try some of the best Minecraft skins and share them with your friends. With that said, if you face any problems while hosting or running your server, please feel free to drop your queries in the comments below.
You May Like: How To Make A Parrot Dance In Minecraft
Setting Up Your Minecraft Server On Linux
A Linux-hosted VPS is perfect if you dont expect to have a lot of players on your server, and its a great way to get started. If you find you need more power, you can scale up pretty easily. If you have bigger plans, you might want to consider a dedicated server.
LinuxGSM is an open-source command tool that works exceptionally well for game server deployment. You will need to manually configure Java and point LinuxGSM to it. on how to deploy a Minecraft server in Linux.
Save the server.properties file and restart the server. You will then need to put your server IP address into Minecrafts status checker to see if its running.
Point your domain to the Minecraft server. Use an easy-to-remember name rather than an IP address so your peeps can find you. You can do this by updating your domains DNS records with an A record or a subdomain that you can point to your servers IP address.
How Much Will You Pay for a Minecraft Server?
How To Connect To A Modded Minecraft Server
To connect to your modded Minecraft server, players must:
Recommended Reading: How To Get A Shulker Box In Minecraft
How To Make A Minecraft Server For Free
This article was written by Travis Boylls. Travis Boylls is a Technology Writer and Editor for wikiHow. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College.The wikiHow Tech Team also followed the article’s instructions and verified that they work. This article has been viewed 773,048 times.
This wikiHow teaches you how to create a free Minecraft server. There are lots of Minecraft server hosting services you can sign up for. Minehut is one of the few services that allows you to host a Minecraft server for free. Minehut servers only work for Minecraft: Java Edition. This wikiHow teaches you how to create a free Minecraft server using Minehut.
Adjust The Settings Of The Minecraft Server
As a server owner, you can make numerous settings for your Minecraft world. This is done primarily via the server.properties file. You can set the number of players , change the difficulty level , enable or disable PvP and make many other modifications. To do this, enter the desired number in the respective line or change the command to true or false.
For an overview of the various settings options, see the article about the server.properties file on the official Minecraft wiki.
Make a statement with your own .gg domain and let the games begin. Register your own .gg domain now with IONOS.
Learn how to update the version of Minecraft Server running on your Linux server, without losing any data or overwriting your world file. When Mojang issues a Minecraft update, Minecraft server administrators need to manually update the version of Minecraft running on their servers.
After you get your Minecraft server up and running on a Cloud Server with Linux, there are many ongoing tasks to perform and changes you can make. Learn how to perform management and administrative tasks on a Minecraft server, including how to start and stop the Minecraft server, change the map seed, and use console commands.
- Domain extensions
Read Also: How Many People Play Minecraft Every Month
Tweaking The Servers Properties
Open up the server.properties file in notepad. Youll see something like this:
Youll see some important options.
- level-name: This is the name of your Minecraft world. If you change this name, the server will look for a folder with a matching name, and if none is found, it will generate a new level with this name.
- spawn-monsters: If set to false, monsters such as zombies, skeletons, and creepers will not spawn. Often turned off for op or creative servers, where everyone builds and survival is not the focus of gameplay.
- spawn-animals: If set to false, animals such as wolves, cows, sheep, and chickens will not spawn.
- pvp: If set to false, players will not be able to harm one another, although you can still inflict damage by pushing other players off of ledges.
- white-list: If set to true, the server will only allows the usernames in the white-list.txt file to successfully connect and play.
For a complete description of all of the options, check out the Minecraft Wikis page on server.properties. Once youre done changing things to what you want, save the file.
Since its your server, be sure to add your Minecraft username in the ops.txt file. That way, youll be an operator with full admin rights. You can generate any item you want, ban players, make other players ops, and change the in-game time.
When youre ready, start up the server again.
Some Basic Computer Knowledge Would Be Helpful
Before trying to create your own Minecraft server, it’d be good if you’re familiar with some things:
You don’t have to be an expert, but having some basic knowledge can help a lot in the server creation process.
Related: How to Join a Minecraft Server
Don’t Miss: What Bane Of Arthropods Does In Minecraft
Invite Friends: Find Your Public Ip Address
To join any dedicated Minecraft Bedrock server, you only need the hosts public IP address. Fortunately, because of port forwarding, the public IP address wont reveal any of your private information. You can find the same by opening Google and searching for what is my IP.
The search results will display your public IP address. You need to copy it and share it with your friends that want to join the server. As you will see in the next section, you also need the same to join your new Minecraft Bedrock server.
How To Setup Minecraft On A Server Running Linux
This section will show you how to create a Minecraft server on a machine running on Ubuntu or CentOS. The minimal operating system requirements are Ubuntu 16.04 or CentOS 7.
Keep in mind that this setup process also requires root SSH access to the server. Hostinger users can find the login credentials in the Server Management area of the hosting account.
Don’t Miss: How To Make Leaf Blocks In Minecraft
Connecting To The Minecraft Server
- If you are playing on the same machine on which the server is running, select the “Multiplayer” option in the game client, click direct connect, and then type in localhost instead of an IP address.
- Both hosting and playing on the same machine is not a recommended practice unless you have a powerful computer .
A Brief Overview Of The Three Ionos Server Options
A Dedicated Server with specially allocated hardware in our data center is an excellent solution for hosting individual applications. As a basis for server applications like a Minecraft server, this server model is ideal. Billing takes place per-minute with this package.
We guarantee an external broadband connection of the server with up to 400 Mbit/s regardless of the chosen server model.
However, to make a Minecraft server, the virtualized resources you rent with a vServer or Cloud Server are also perfectly suitable. Even if you dont get dedicated hardware components here, the selected performance is guaranteed at all times. When deciding between vServer and Cloud Server, the payment model might make a difference:
If you are unsure when and how often you want to run your Minecraft server, a Cloud Server Package is the perfect choice, as here we only charge for the resources you actually need and use.
If you rent a vServer, you pay a fixed monthly amount, regardless of whether your Minecraft server is running or not. However, if youre planning on continuous operation, you will get significantly lower costs than with a cloud server.
Recommended Reading: How To Name Pets In Minecraft