ModsCraft » Guides » Creating a Minecraft Server

Creating a Minecraft Server

WhatsApp
Telegram VKontakte Odnoklassniki Pinterest
Creating a Minecraft Server

Creating your own Minecraft server is awesome! You can play with friends, add unique mods, and customize everything to your liking. In this simple guide, we'll show you how to make a server yourself. There are several methods, and we'll cover each one in detail.

Navigation

Which method to choose?

The easiest method is to use specialized hosting. A similar option is to use the ready-made solution Realms from the official developers, which is a bit more expensive and allows you to download ready-made maps for Bedrock. These two options work for both Java and Bedrock.

A free but more complex option is to set up a server yourself on Windows (instructions for Java or Bedrock). To keep the server running 24/7 instead of only when your computer is on, set up a paid rented server on Linux (instructions for Java or Bedrock).

Method Free Server always available? Difficulty Specialized hosting No Yes Easy Realms No Yes Slightly harder Windows Yes No Hard Linux No Yes Hard

If you're looking for a faster way to start playing with friends, you can join an existing server. To choose a popular server, we recommend checking out the server rating at mineserv.top.

Tips for choosing a server

Ready-made solutions (Java and Bedrock)

Specialized hosting

The simplest and most convenient option. Choose a hosting provider and rent a server. The first launch requires no setup. The user-friendly interface lets you quickly configure plugins. For example, you can try the popular server hosting mcpehost.ru.

Screenshot of mcpehost server hosting

Realms

The second most convenient method is Realms from the official developers. It's a paid subscription that also requires a licensed Minecraft account. More details about Realms pricing in the table below.

Realms pricing table

Self-hosted for Java

To have full control over your server, you can use manual setup instead of specialized hosting. You can set up a server for free directly on Windows, or on Linux if you want the server to run 24/7.

Windows (without mods)

A free method that lets you play with friends, but the server will only run while your computer is on.

First, download and install Java if you haven't already. I recommend installing Java 17 right away.

Next, download the server.jar from the official website. Create a folder on your computer, e.g., "Minecraft Server", and copy the file there. Open a command prompt in that folder and enter the following command:

java -Xmx1024M -Xms1024M -jar server.jar nogui

The first launch won't succeed, but new files will appear in the "Minecraft Server" folder. You need to do two things:

1. Open eula.txt and change the eula value from false to true, thereby accepting the EULA from the developers.

2. Open server.properties and change the online-mode value from true to false, thereby allowing connections to the server without a license.

Run the command above again. If no issues arise, the server will be ready for connection.

Linux

A similar option, but this time you'll need a rented VPS or dedicated server. The game server will run even when your computer is off.

We'll cover setting up a server on Ubuntu and CentOS. Recommended OS versions:

  • Ubuntu
    • For versions below 1.17: Ubuntu 18.04
    • For versions 1.17 and above: Ubuntu Server 20.04 LTS
  • CentOS 7

Connect to the server, for example using Putty.

Check if Java is installed on the server:

java -version

If not, run the following commands for Ubuntu:

  • For versions below 1.17:
    sudo apt update; sudo apt-get install openjdk-8-jdk-headless
  • For versions 1.17 and above:
    sudo apt update; sudo apt install openjdk-16-jdk-headless

Or these commands for CentOS:

sudo yum update; sudo yum install java -y

After successfully installing Java, install Screen - a program that allows the server to run without an open console. Ubuntu:

sudo apt-get install screen

CentOS:

sudo yum install screen -y

You'll need wget, install on Ubuntu:

sudo apt-get install wget

On CentOS:

sudo yum install wget -y

Let's start installing the server. Create a separate folder for the server:

mkdir minecraftserver

Open the folder:

cd minecraftserver

Open this page from the official website and copy the link to server.jar.

Copy link from official website

Enter the following command:

wget [link]

Activate Screen and continue working in it:

screen -S "MinecraftServer1"

Try to run the downloaded server.jar file:

java -Xmx1024M -Xms1024M -jar server.jar nogui

The first launch won't succeed, but new files will appear in the "Minecraft Server" folder. You need to do two things:

1. Open eula.txt and change the eula value from false to true, thereby accepting the EULA from the developers.

2. Open server.properties and change the online-mode value from true to false, thereby allowing connections to the server without a license.

You can do this using any file editor in the terminal or via FTP connection (e.g., FileZilla).

After making the changes, try to run server.jar again. If the server starts successfully in the console, you can close the console and start playing.

Self-hosted for Bedrock

So far we've covered only the official option. The first step is to download the archive for Windows or Linux: Ubuntu from here. Note that the build is in alpha testing.

We haven't thoroughly tested these methods. If you encounter issues, ask for help in the comments.

Windows

Download the archive for Windows. Extract it to a convenient location. Run the bedrock_server.exe file.

Starting bedrock_server.exe

That's it! The server is running. Note that the server will only work while your computer is on.

For configuration, the archive contains the server.properties file and the bedrock_server_how_to.html guide.

Linux: Ubuntu

The second option, where you don't need to keep your computer on. A VPS or dedicated server is suitable, but you'll need to pay for it.

Download the archive for Ubuntu. Extract it to a convenient location. Start the server with the following command:

LD_LIBRARY_PATH=../bedrock_server

That's it! The server is running. Don't forget to use screen, as in this guide.

For configuration, the archive contains the server.properties file and the bedrock_server_how_to.html guide.

What about other options?

Yes, we haven't covered all options. In the future, this article will be updated, and we'll cover how to set up a server:

  • For Windows with mods
  • On unofficial cores
87 comments
  1. Guest avatar
    илья
    11:31 5 Jul 21
    А что такое игровой слот ???
    1. Guest avatar
      Огнезвёзд
      14:01 20 Jan 22
      количество игровых слотов это число игроков которые могут одновременно находится на сервере
  2. Guest avatar
    Тимур
    16:17 22 Jun 21
    Как скачать
  3. Guest avatar
    Незнаю
    17:24 26 Apr 21
    Напишите свой адрес и порт от серва на версию 0.14
  4. Guest avatar
    1.17.0.50
    9:18 24 Apr 21
    1.17.0.50
  5. Guest avatar
    Айыжы
    16:49 19 Mar 21
    Айыжы в этом году
  6. Guest avatar
    Дима
    21:50 11 Dec 20
    А почему платить надо.???
    1. Guest avatar
      ЖИТЕЛЬ ТОРГОВЕЦ
      10:57 4 Jan 21
      Ну как сказать, не стать же знаменитым сервером за бесплатно. + разработчики хостинга должны на что-то кушать.
  7. Guest avatar
    Людмила
    12:49 8 May 20
    Что бы зарегатся надо зайти на сайт
  8. Guest avatar
    Знаток Minecraft
    19:49 21 Mar 20
    Не 24 часа , а всего 2
  9. Guest avatar
    Егор
    16:31 7 Mar 20
    У меня просит пароль от акк и сказал это не верный пароль все было правильно что делать?
    1. Guest avatar
      ГОША
      13:53 1 Aug 20
      Поздравляю, тебя наехали
  10. Guest avatar
    Дима
    15:49 4 Mar 20
    Я не понял

The best Minecraft server! Accessible on all versions!

Clans, Anarchy, Survival, Hardcore, PvP
IP:Port gamepe.me:19132
Online 422 / 2500
Version 1.1.5 - 1.26
Play