My Minecraft server

Screenshot 2020 06 22 at 11 14 47

Wow! The original version of this text got out of date very quickly. I’ve added a section for the upgrade to 1.16.1 below. Current, as of the time of this writing- is 1.16.3.

I initially started running version 1.16 of the server on a $5 per month VM on Digital Ocean. But it turns out Minecraft does not run very well with less than 1 GB of memory for itself - so giving a bit of RAM for the OS you will need a server with at least 2 GB. Install updates and Java on the server. The Jave Server editing of Minecraft will need Java runtime (JRE), version 8 or higher installed on the server.

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install openjdk-8-jre-headless

Another pre-requisite is screen, a utility that allows you to run the server without being logged in.

$ sudo apt install screen

Open the firewall on port 25565 To allow clients to connect, the port 25565 needs to be open.

$ sudo ufw allow 25565

Downloading the server You’ll find the most recent version of the server software here: DOWNLOAD THE MINECRAFT: JAVA EDITION SERVER

Right-click the link and copy the URL, which should like something like this:

$ wget

$ mv server.jar minecraft_server_1.15.2.jar

Also, rename the server.jar file to help you remember what version you are currently running.

Accept the license agreement. Minecraft keeps the equivalent of the Accept button in a text file. Edit that file and replace the value false with true.

$ nano eula.txt

#By changing the setting below to TRUE you are indicating your agreement to our EULA (
#Tue Mar 24 22:05:31 UTC 2020

Start the server Use screen to allow the server to run, even after you log out of you ssh session.

$ screen

$ java -Xmx1024M -Xms1024M -jar minecraft_server_1.15.2.jar nogui

(Note - the -Xmx1024M -Xms1024M sets the memory allocation to 1 GB, which is a good start.)

Once everything is up and running, press Ctrl + A + D to disconnect.

Use the following command to check if the server is still running.

$ screen -list

~$ screen -list
There is a screen on:
    1182.pts-0.minecraft-server (06/19/20 08:35:41) (Detached)
1 Socket in /run/screen/S-martin.

Then you’re done.

The number 1182 will be different for each installation. You can then use the -r option to reconnect and see the output of the server running.

$ screen -r 1182
Screenshot 2020 06 22 at 15 11 24

A word on memory

I started with the smallest available VM for $5/month with 1 GB of RAM but ended up with a couple of out of memory exceptions and complaints from the players about slow rendering. So I’ve now upgraded to the next bigger droplet with 2 GB for $10/month.

So if you’re thinking about running your own MC server for a fiver a month: don’t.


The server version needs to match the version of the client. The client just got upgraded to 1.16 and to 1.16.1 a few minutes later. And the same then applies to the server, otherwise you won’t be able to connect.

I first use sudo apt update and upgrade and dist-upgrade and then rebooted. Which is probably good practise anyway. And it closes out any servers already running.

Then download the latest version of the server (1.16.1)

$ wget

$ mv server.jar minecraft_server_1.16.1.jar

Then launch that

$ screen

$ java -jar minecraft_server_1.16.1.jar nogui

And when it says done hit Ctrl + A + D.

0 comment(s)

Leave a comment?