How To Setup Minecraft Server [2021]

How to setup minecraft server

[Updated] Minecraft is one of the most popular games of all time. Where players explore infinite worlds and build structures ranging from simple houses to tall skyscrapers. Minecraft is a sandbox game in which you can build your own 3D world. The first version of this game was made in 2009 and to date, more than 30 million copies of this game have been made and sold for various platforms. If you want to play Minecraft with your friends, you will need Minecraft Game Server. This server allows players to connect to a central system as a host for gaming software. In this article, you will learn How To Setup Minecraft Server. To buy a Virtual Private Server, visit Eldernode, contact our support team, and purchase your desired VPS Hosting Server.

How To Make A Minecraft Server

Minecraft is a very simple 3D game based on pixels. This game has created a lot of popularity among Internet users and video game enthusiasts in a short period of time. Minecraft is a group game that allows users to play together on a server. Among the features of this game, we can mention the construction of 3D buildings. The whole game is adventurous and time-consuming. In this article, we teach you how to install the Minecraft game server on Ubuntu and Windows Operating System. If you are looking for better performance of your game server, it is better to use a server with high RAM and CPU power to respond to players’ commands better and faster.

Recommended Article: Tutorial set up a Firewall with UFW on Ubuntu 20.04

Prerequisites to Install a Minecraft Server on Ubuntu

To let this tutorial work better, please consider the below Prerequisites:

_ A non-root user with Sudo privileges.

_ To setup, follow the Initial server setup on Ubuntu 21.04.

_ Linux VPS server

_ Ubuntu Operating System

_ 1024 MB RAM (at least 1024 MB but the recommended amount is 2048 MB. Of course, this depends on the amount of traffic and the number of players)

How To Install Minecraft Server On Ubuntu

In the first section of this guide, you will review the Minecraft installation process on Ubuntu. Let’s go through the required steps to finish it.

You must update the system. Use the commands below to do this:

apt-get update
apt-get upgrade -y

Now, you must install OpenJDK.

Note: OpenJDK is an open-source program for implementing java and GNU and creating this environment on Ubuntu. Install OpenJDK with the following command:

apt-get install openjdk-8-jre-headless screen

It is the turn of creating a new user. Enter the following command to create a new user:

adduser minecraft

Then, change the type of user from the current to the new user you created:

su - minecraft

It’s time to install Minecraft. Install the latest version by running the following command:


Note: You can find the latest versions of Minecraft from the Minecraft website.

Using the following command, you can run the script that runs Minecraft:

nano /home/minecraft/

Enter the following command in this file and then Save it:

#!/bin/sh  BINDIR=$(dirname "$(readlink -fn "$0")")  cd "$BINDIR"    java -Xms1024M -Xmx1536M -jar minecraft_server.1.11.2.jar -o true

Note that the Xms and Xmx values are the minima and maximum amounts of RAM allocated to the Minecraft server. In this article, the minimum is 1024 MB and the maximum is 1536 MB. This value can vary depending on the volume of server usage.

Then define that the new script created by the following command is executable:

chmod +x /home/minecraft/

Now run Minecraft using the following command:


Open the eula.txt file and change the EULA value to true:

nano /home/minecraft/eula.txt

To ensure that the Minecraft server uses a separate SSH, run the following command:

sudo screen /home/minecraft/

Open the Minecraft client program and click on Multiplayer:


Minecraft client program


Finally, enter the server address, which is the IP of the server, and connect to the server:


How to connect minecraft server


You have launched a dedicated and personal Minecraft server on your Ubuntu server. Now you can share the IP address with your friends, all together on one server, and enjoy the game.

Prerequisites to Install a Minecraft Server on Windows

To setup a Minecraft game server in Windows, please consider the below Prerequisites:

_ Windows 10

_ At least 4G RAM

_ Connect to a reliable, high-bandwidth Internet because Minecraft consumes at least 100 MB of Internet per player per hour.

Recommended Article: How To Setup Minecraft Server [2021]

How To Install And Configure Minecraft Server On Windows

Walk through the steps of this guide and enjoy learning.

Open Windows 10 and download the latest version of Java; Then open the .exe file and click Install.


How to install Minecraft Server in Windows


When the installation is complete, restart your system.

Go to and download the Minecraft Vanilla JAR game server file. When you download the Minecraft Server jar file, the file is automatically saved in the Downloads folder.


Minecraft Server jar file


Move your Minecraft folder to your desired location. In the image below, we moved the folder to the desktop, but you are recommended to use a dedicated folder.


How to configure Minecraft Server in Windows


Double-click the Minecraft JAR file. This will decompress a series of files that we need to run the Minecraft game server.




Before using the server, you must configure the Minecraft server game configuration files. The first file you need to open is the Minecraft EULA file.

Note: EULA is a document that you agree to when running the server.

To accept the end-user license, open the EULA text file and change eula=false to eula=true. Save the file now.

To set the server setting, open the server properties file and save the file when the necessary changes are applied.

Note: In server settings, port 25565 is set by default.


Accept end-user license in minecraft server


To run the java server file, open the Minecraft server file by double-clicking.

Issue access to the Minecraft game server in the firewall by hitting allow access.


How to allow firewall


Now the Minecraft game server has been installed and run and the statistics window has opened. Since the server is up and running, you can log in to the server through Minecraft.

Similar to installing Minecraft on Ubuntu, run Minecraft as mentioned above and select Multiplayer.

Click add server. Enter the server information and click done. Enter the IP of the server you purchased.

Your Minecraft game server is ready! Click the PLAY button and start the game.


In this article, you learned How To Setup Minecraft Server. You reviewed the complete process of Minecraft installation on Ubuntu and Windows. Once you create your own Minecraft, you can start playing with your friends. You are recommended to invite your friends and users you know for security reasons. If you are interested in learning more, find our related article on Tutorial Setup Minecraft Server on CentOS 8.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.
  • Eleanor
    3 years ago

    What is the generality of the Minecraft game?

    • Dani
      3 years ago

      The game is first person by default. The game world is in the form of three-dimensional roughness, and the cubes and liquids in the game represent a variety of materials such as soil, rock, tree trunk, water and lava. The essence of the game is to collect and place these objects on top of each other.

  • Kennedy
    3 years ago

    How many modes are there in the commercial version of this game?

    • Dani
      3 years ago

      There are two main modes. One is Survival mode and the other is Creative mode.
      In survival mode, players must gather resources and try to maintain their health and hunger.
      In creative mode, players have an unlimited supply of resources and can fly freely wherever they want. Also, in this case, the degree of health and hunger is not considered for the gamer.

  • Brianna
    3 years ago

    What are the graphics of the Minecraft game?

    • Dani
      3 years ago

      Minecraft game does not have high graphics, but its unique design will fascinate gamers.

  • Serenity
    3 years ago

    Is Minecraft a multiplayer or individual game?

    • Dani
      3 years ago

      In Minecraft, it is also possible to play in groups and multiplayer with friends via Wi-Fi.

  • Skylar
    3 years ago

    What are the features of Minecraft?

    • Dani
      3 years ago

      In this game, there are activities such as exploration, gathering resources, crafting and fighting for gamers.


Leave Your Comment

Your email address will not be published.

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way


7 days a week, 24 hours a day