Raspberry Pi Minecraft Server Setup Script w/ Startup Service

Minecraft 1.16 Nether Update
Minecraft 1.16 Nether Update

***UPDATE 7/4/2020 – Minecraft 1.16.1 is here! PLEASE make sure you have full backups of your server before attempting to upgrade your server. If you read the older comments you will see that weird things can happen with version upgrades sometimes. 1.15 was an absolute mess at first and a few people without backups in the comments wanted to roll back and had some serious regrets.

All of that being said, I have uploaded 1.16.1 as the default version to the GitHub repository. You can always change this yourself (it’s the very first line of the SetupMinecraft.sh script) if you want to go back to a previous version (use a backup for that, usually you can’t go back after upgrading because there’s new stuff in there the old one doesn’t recognize and will crash) or if a new version comes out and I haven’t published it but you want to try it anyways!
***END UPDATE

Minecraft 1.16.1 (Nether Update) is here! This script and guide are written to help you get a great performing Raspberry Pi Minecraft server up and running in only a few minutes.

Features

  • Sets up fully operational Minecraft server in a couple of minutes
  • Raspbian / Ubuntu / Debian distributions supported
  • Installs and configures OpenJDK 11 (or higher if available)
  • Sets up Minecraft as a system service with option to autostart at boot
  • Automatic backups to minecraft/backups when server restarts
  • Updates automatically to the latest version when server is started
  • Easy control of server with start.sh, stop.sh and restart.sh scripts
  • Optional scheduled daily restart of Pi using cron
  • Optional configuration of video memory to 16MB (default 64MB) and overclocking MicroSD reader to 100Hz (default 50Hz) for maximum performance

Requirements

  • Raspberry Pi model with 1 GB of RAM or higher. Basically a Raspberry Pi 2B or higher. (No Zero unfortunately, 512MB is not enough RAM to do this, I’ve tried!)
  • Headless Linux distribution such as Raspbian Buster Lite, Ubuntu Server 18.04.2, or any Debian based distribution (GUI distros can be used at the expense of available RAM and server performance)
  • Solid state drive highly recommended but not required.
    You can get a SSD setup on a Pi for less than most Micro SD cards cost. See my article here for details
  • If using MicroSD you want to be using a high range card otherwise you will really be hurting on IO when the server is reading/writing chunks of terrain! Click here for MicroSD card benchmarks/recommendations.

Recommended Gear

Raspberry Pi 4 Model B 8GB

Raspberry Pi 4 8GB

StarTech 2.5″ SATA to USB 3.0 Adapter -AND- Kingston A400 SSD 120GB SATA 3 2.5” Solid State Drive

StarTech 2.5" SATA to USB 3.0 Adapter
Kingston A400 SSD

Or for a compact setup: SanDisk Extreme Pro 128GB USB Solid State Flash Drive

SanDisk Extreme Pro 128GB USB SSD

Best benchmarking Micro SD card: SanDisk Extreme 64 GB MicroSD Card

SanDisk Extreme A1 MicroSD Card

Choosing a Linux Distribution

The most important consideration when choosing which flavor of Linux to run the server on is simple: available RAM. Headless Linux distributions such as Raspbian Lite that don’t have a built in GUI have

Our biggest obstacle when running a Minecraft server on the Pi is available RAM since 1 GB is extremely low for this type of server. To have a playable experience you should not be running anything else on the Pi so all memory is available to be used.

After testing on many different distros I am finding Raspbian Lite and Ubuntu Server 18.04.4 32-bit to be the best choices. These distributions come with very few background processes and have rock solid support and performance.

64-bit vs 32-bit

There’s a lot of discussion in the Pi world about the up and coming aarch64 64-bit distributions vs. armhf 32-bit distributions. They have been and continue to improve dramatically. There are already use cases where 64-bit is far superior such as video encoding, advanced compression, etc.

So how about for running a Minecraft server? I have been testing extensively with Ubuntu Server 18.04 64-bit and the Debian Buster 64-bit. I have consistently had worse performance and stability than on 32-bit versions of the exact same distros.

But how can that be? It’s certainly true that Minecraft servers benefit in CPU performance from 64-bit versions of Java. The answer is actually incredibly simple: memory. The server running on a 64-bit Java Virtual Machine uses a minimum of about 100 MB more memory. This makes perfect sense because 64 bits > 32 bits by definition!

The Raspberry Pi’s 1 GB of memory has been the biggest obstacle for this project since the very beginning. Back when I first went into the Paper Minecraft developer IRC room and told them what I was trying to do I was practically laughed out of the chat room for even thinking of trying this. Most Minecraft server branches including vanilla can’t even start on the Pi because of the limited memory.

For a dedicated Minecraft server on the Pi I very highly recommend staying 32-bit. You will have more available memory which means it will be much faster and more stable. Since memory is our bottleneck the increased CPU throughput does not help us and losing *any* of our memory is disastrous!

If the Raspberry Pi 4 has more memory like we all expect it to this recommendation will change completely. Even 2 GB of memory would make the extra memory that 64-bit uses a non-issue and the CPU throughput performance gains very desirable. For now though stay 32-bit for a Minecraft server!

Tested Distributions

Raspbian Lite – It’s Raspbian. It has very low memory usage and is the official distribution of the Raspberry Pi. The server runs very well on this. It’s overall the best choice. The Buster release has made OpenJDK 11 available on it so it’s no longer behind the rest of the distros.

Ubuntu Server 18.04.3 – Ubuntu Server is my favorite Linux distro. I use it for nearly all of my projects. The performance of the 32-bit armhf version is on par with Raspbian. It’s a great choice! Click here for my Ubuntu setup guide for Raspberry Pi. The 64-bit version is not a fantastic choice and not recommended because of the higher memory usage. Stick with 32-bit and you’ll be a happy camper with Ubuntu Server.

Debian Buster 64-bit – Debian is the distribution Raspbian is based on. This version is a preview of Debian “Buster” which is the successor to Stretch and will be the next version of Raspbian when it is released. I like this distribution but it is currently still unofficial and unsupported. Performance and stability was less than Ubuntu and Raspbian.

Benchmark Your Storage

Make sure your storage is running fast enough to be an effective Minecraft server. I wrote a benchmark for this purpose to make this extremely easy. To get accurate results make sure nothing is running when the benchmarking is taking place.

Run the benchmark by pasting/typing:

sudo systemctl stop minecraft
sudo curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash 

Ideally you will score around 1000 for a good quality Micro SD card (and much higher for solid state storage). A low score (< 700) here indicates here that it is probably time to upgrade to a solid state drive or a faster Micro SD card. Click here to view all the existing benchmarks.

You can still run the server if you’d like with a low storage score but be advised when operations like saving the server’s blocks take place the people online may experience quite a big of lag!

Installation

SSH into your Raspberry Pi and paste the following commands:

wget https://raw.githubusercontent.com/TheRemote/RaspberryPiMinecraft/master/SetupMinecraft.sh
chmod +x SetupMinecraft.sh
./SetupMinecraft.sh

The script will setup the Minecraft sever and ask you some questions on how to configure it. I’ll explain here what they mean.

“Enter amount of memory in megabytes to dedicate to the Minecraft server” – The amount of memory that will be dedicated to the Minecraft server. The more the better, but you must leave some room for the operating system background processes.

If you exceed the total available memory either the server will crash or the Pi will get incredibly slow to the point where your SSH session will start timing out. The setup script will make a recommendation to you which is your available memory – 10% for headroom. If you aren’t sure what to put just go with the recommended amount.

Note for Raspberry Pi 4: Currently on 32-bit Raspbian 2700 MB is the maximum that Linux will let us allocate in a 32 bit environment. The script has been updated to check for this as the server will not start if it is set over 2700M on a 32 bit server. 64 bit operating systems will be able to allocate all available memory as Pi 4 support rolls out for them.

“Start Minecraft server at startup automatically (y/n)?” – This will set the Minecraft service to start automatically when your Pi boots. This is great because whenever you want to play you can just plug it in and go without having to SSH in.

“Automatically reboot Pi and update server at 4am daily (y/n)?” – This will add a cron job to the server that reboots the Pi every day at 4am. This is great because every time the server restarts it backs up the server and updates to the latest version. See the “Scheduled Daily Reboots” section below for information on how to customize the time or remove the reboot.

That is it for the setup script. The server will finish configuring and start!

Check Java Version

Sometimes if you have multiple versions of Java installed the wrong version of Java will be selected as the default. If the server didn’t start check that the right version of Java is selected with this command:

sudo update-alternatives --config java

If you get the message “update-alternatives: error: no alternatives for java” then you only have one version of Java installed and can skip to the next section.

If you are presented with a list of choices then your machine has multiple versions of Java installed. It will look like this:

update-alternatives: warning: /etc/alternatives/java has been changed (manually or by a script); switching to manual updates only
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1101      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1101      manual mode
  2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

You will usually want to just select the newest version of OpenJDK that is listed so you would type 0 and press enter. In some cases on some platforms you may want to switch to the official Oracle JDK although I strongly recommend sticking with OpenJDK!

First Run

The first time you run the server it will take a little longer to start since it is generating all the server data. If you try to log in before it fully starts you will get a connection timeout error. Watch for the line: “Timings Reset”. This is the last line that prints when the server is ready to rock and roll. At this point you will be able to connect successfully.

The very first time you log into the server it will be slow for about 1-2 minutes. This is because since nobody has logged in before the server has to scramble to generate all the chunks within your view distance (10 by default) and send them to you/store them. During this time you may not be able to see very far and if you try to destroy blocks there will be noticeable lag from when they break to when they actually disappear.

Don’t panic! This will go away within a couple of minutes as the Pi catches up with all the first time login stuff it needs to do. Performance stabilizes and it will feel very much like the offline experience after that.

If you are hosting for a few friends I’d recommend logging in for the first time right after you set up the server instead of having several people nail a blank server at first startup. This gets it out of the way and when everyone is ready to log in the starting area chunks will be fully fleshed out and the Pi just has to read them. It’s an order of magnitude faster for the Pi to read chunks than to generate and store chunks.

In my experience after the initial login exploring new parts of the server doesn’t cause any lag even though new chunks are being generated. The reason for this is that when you’re walking it’s really only having to generate a new chunk as you get close to the border instead of a huge square area of chunks in all directions and all at the same time like during the first login.

Changing Minecraft Server Version

If you want to change which version your Minecraft server is running it can be changed by opening SetupMinecraft.sh with any text editor (example: nano SetupMinecraft.sh).

Change the line Version=”1.15.1″ to whichever Minecraft server version you want to run. Note that that version must already exist for Paper Minecraft. You can view all available versions at the following URL:

https://papermc.io/api/v1/paper/

Changing Minecraft Client Version

If you are wisely running the “stable” branch instead of the “development” branch there will be times where you need to select the version of Minecraft to run otherwise you will get an error message that your client is outdated when you try to log in.

Fortunately this is very easy. Open up the Minecraft launcher and instead of hitting “Play” choose “Launch Options” in the menu at the top of the window. It will look like this:

Raspberry Pi Minecraft Server Setup Script w/ Startup Service
Minecraft Launcher “Launch Options” Tab

Click the “Add new” button and pick which version you want to add. You can optionally gave it a name or just click save.

Now when you go back to the “News” tab you will see a dropdown arrow where you can select which version of Minecraft you want to play!

Start, Stop and Restart Server

The server can be started, stopped and restarted two different ways. You can use the provided scripts in the Minecraft folder or you can use systemctl. Here are the commands:

cd ~/minecraft
./start.sh
./stop.sh
./restart.sh

-OR-

sudo systemctl start minecraft
sudo systemctl stop minecraft
sudo systemctl restart minecraft

Automatic Backups

The server backs up each time it starts. This helps you recover easily if something goes wrong. This system works best if you configured the server to restart daily since it means you will have a backup every day.

To access these backups type:

cd ~/minecraft/backups
ls

When a backup is made the filename will be the date and time the backup was taken. If you need to restore a backup it’s very easy. Substitute the timestamp in my example to the backup you want to roll back to. Type:

cd ~/minecraft
./stop.sh
rm -rf world world_nether world_the_end
tar -xf backups/2019.02.15.22.06.30.tar.gz
./start.sh

Your world has now been restored! It’s a good idea to download these backups off the Pi periodically just in case the Pi’s storage fails.

Scheduled Daily Reboots

The daily reboots are scheduled using cron. It’s very easy to customize the time your server restarts.

To change the time that the server restarts type: crontab -e

This will open a window that will ask you to select a text editor (I find nano to be the easiest) and will show the cronjobs scheduled on the Pi. The Minecraft one will look like the following:

0 4 * * * /home/ubuntu/minecraft/restart.sh
Raspberry Pi Minecraft Server Setup Script w/ Startup Service

There are 5 fields here. The default restart time is set to reboot at 0 minutes of the 4th hour of the day (4 AM). The other 3 fields are left as * to represent every day of every month. Make any desired changes here and press Ctrl+X to exit nano and update the cronjob.

To remove the daily reboot simply delete the line and save.

Installing Plugins

The server supports plugins that are compatible with Bukkit / Spigot / Paper. A popular place that you can get plugins is at where there are thousands of them!

To install a plugin you simply download the .jar to the minecraft/plugins folder and restart the server. For example, WorldGuard is a very popular plugin that lets you add protection to different areas of your server.

To install this plugin on our Minecraft server we would use the following commands:

cd ~/minecraft/plugins
wget https://dev.bukkit.org/projects/worldguard/files/latest
sudo systemctl restart minecraft

The server will restart and the plugin will be installed. It’s that simple! To use the plugin refer to the documentation on the plugin download page to find out which commands you use to configure/interact with it.

Warning: be advised that plugins are the #1 issue for performance degradation on Minecraft servers. This isn’t because all plugins are bad. Some plugins are coded very inefficiently or perform features that require a lot of hooks in the code.

You should be careful about what plugins you install on the server and if you start having bad performance disable your plugins one by one until you find the culprit!

Reconfigure / Update Scripts

The scripts can always be reconfigured and updated by downloading the latest SetupMinecraft.sh and running the installer again. It will update all of the scripts in the Minecraft directory and reinstall the startup service for you.

Running SetupMinecraft.sh again will also give you a chance to reconfigure options such as the memory dedicated to the server, daily reboots, starting the server on boot, etc.

This will not overwrite your world or any other data so it is safe to run!

Port Forwarding

If everyone on your server is on the same LAN or WiFi network as you then you don’t need to do this. If you want people to connect from outside your local network then you need to set up port forwarding on your router.

The process for this is different for every router so the best thing to do is just look at your router and find the model # and put that in google with port forwarding for easy instructions on how to do it for your specific router.

You want to forward port 25565. The type of connection is TCP if your router asks. Once you do this people will be able to connect to your Minecraft server through your public IP address. This is different than your local IP which is usually a 192.x.x.x or 10.x.x.x. If you don’t know what that is just go to google and type “what’s my ip” and Google will kindly tell you!

Wired vs. Wireless

Going with an ethernet (wired) connection is going to be faster and more reliable. There’s so much wireless traffic and other interference in the air that running your server on WiFi is not recommended.

Even if it is working great 99% of the time it can ruin your experience very quickly if the WiFi drops for a couple of seconds and you get blown up by a creeper!

All that being said, the server works fine on wireless. The script will work fine as is with a wireless connection.

Upgrading

PLEASE BACK UP YOUR SERVER FIRST! The server makes automated backups by default for you in the backups folder but I recommend you back up the entire server folder yourself (basically the entire minecraft folder) any time you attempt to upgrade or downgrade. If you need to roll back to older versions it won’t work without a backup from that version or older!

The easiest way to upgrade an installation is to download the latest SetupMinecraft.sh and run it. This will automatically upgrade you to the latest version.

Upgrading and downgrading to versions that aren’t the default the script chooses is pretty simple. Simply change the Version line at the top in the SetupMinecraft.sh script:

#!/bin/bash
# Minecraft Server Installation Script - James A. Chambers - https://www.jamesachambers.com
# More information at https://jamesachambers.com/raspberry-pi-minecraft-server-script-with-startup-service/
# GitHub Repository: https://github.com/TheRemote/RaspberryPiMinecraft

# Minecraft server version
Version="1.16.1"

Edit this file in your favorite text editor (you can use nano or vi on the Pi like nano SetupMinecraft.sh) and change the Minecraft version to what you want.

Downgrading

PLEASE RESTORE USING A BACK UP FROM THE VERSION YOU ARE DOWNGRADING TO

If you are having problems on a newer version of Minecraft and want to downgrade you can do so using a complete backup of your server before you ran it on a newer version.

The reason you can’t take server data that has been touched by a version such as 1.16.1 and go back to 1.15 is that the new version adds all sorts of new data types/structures for the new content into your server data files. If you try to roll back the old versions of the Minecraft server will not understand these data types since they didn’t exist in that version and will crash.

As long as you use a backup for your server files from that version (or older) it’s as simple as changing the version in SetupMinecraft.sh just like I show in the “Upgrading” section.

You can upgrade any old version of Minecraft to any version, but again make sure you have a backup first as it is a one way street and you will need that backup if you want to roll back!

Version History

To view the version history check out the GitHub README here:

https://github.com/TheRemote/RaspberryPiMinecraft#update-history

396 thoughts on “Raspberry Pi Minecraft Server Setup Script w/ Startup Service”

  1. Avatar for Max

    Hi all,

    may sound like a silly question, but how do I easily switch the map running on the server. I have my current map backuped every day – like in this guide. But how and where do i set a new map or switch to a different (already) existing map save.

    Thanks!

    1. Avatar for Sinorance

      The world is generated by name, so you’ll have to change the “level-name=world” in server.properties and the server will use the level-name you have defined. For example, since the default is “level-name=world”, it loads using the “world”, “world_nether”, “world_the_end” folders. If you change to “level-name=new_world” it will generate a new world using folders “new_world”, “new_world_nether”, “new_world_the_end”. To switch between worlds you’ll have to stop the server, configure “level-name” in server.properties with the world name you want to use, then start the server.

    1. Avatar for Tosnic

      Hey Ash,
      just delete (or rename) the default world folders (named something like “world01”, “world01_nether” , “world01_end”), then copy your existing world folders into the same directory and rename them to replace the default world.
      Alternatively, you might just edit the server.properties file in the /minecraft directory (e.g. using the command “nano /minecraft/server.properties”) and change the world name from “world01” to whatever your existing world is called. I did not try this, but I bet you need to restart your server after this change. But you probably should stop the server before doing this kind of changes.

  2. Avatar for Sosoa

    Hey, not sure but what the cause is, cant tell if it is bukkit, spiggot, or paper, but something is causing named hostile mobs to despawn. Got any advise on how to fix this

  3. Avatar for SnowieJoey

    Whenever I try to download plugins it does this:

    Connecting to dev.bukkit.org (dev.bukkit.org)|2606:4700::6813:9384|:443… connected.
    HTTP request sent, awaiting response… 403 Forbidden
    2020-03-28 22:15:23 ERROR 403: Forbidden.

    I’m not sure how to go about troubleshooting this, I have given my pi a static ip and im not sure, but maybe that would have something to do with it, anyway
    any help with the problem is appreciated.

    1. Avatar for karigon

      I face this problem too, can’t seem to get it to work. Tried a few way including adding agent name into the wget. I suspect is bukkit.org somehow blocking wget requests to pull the files.

      Either ways, my workaround is to download it on your computer and use pscp and transfer the file over to the Raspberry Pi. Troublesome but at least it works for now. Hope someone else can give some insights on this issue

    1. Avatar for waiterKK

      hi,

      you probably did not choose YES while installing the server (it asked you if you want to start it on boot). You can stop the server and start the script again and choose correct answer.

  4. Avatar for Todd Krein

    I’ve just installed this on a brand new 4GB Pi 4, and I’m getting crashes…

    #
    # There is insufficient memory for the Java Runtime Environment to continue.
    # Native memory allocation (malloc) failed to allocate 1409576 bytes for Chunk::new
    # An error report file with more information is saved as:
    # /home/pi/minecraft/hs_err_pid1688.log
    #
    # Compiler replay data is saved as:
    # /home/pi/minecraft/replay_pid1688.log

    I noticed that it seems to be loading Paper 1.15.2, is that what’s expected?

    I haven’t made any changes to any of the scripts. Is it worth submitting the log file?
    Thanks!

    1. Avatar for Matt

      Hi Todd,

      I saw your replies to my other comment, but wanted to leave a reply here for visibility.

      I was able to get around my memory issues by uninstalling Java 11 and switching back to Java 8.

      I followed this guide for the uninstall:
      https://askubuntu.com/questions/84483/how-to-completely-uninstall-java

      And used the following commands for the install:
      $ sudo add-apt-repository ppa:webupd8team/java
      $ sudo apt-get update
      $ sudo apt-get install oracle-java8-installer

  5. Avatar for Logan

    Hey James, love this tutorial! Ran into an issue after several hours of playing. I am hosting the server on a Raspberry Pi 4, 4GB Ram, 64 micro sd, and up to 6 players on the vanilla server. After so many hours, the screen just shutoffs and disappears. There is no lagg in the server when this happens and everyone is disconnected. I then have to go back into PuTTy and start the server back up. Do you know why this may be happening? When I look for the scheduled reboots, it says -bash: 0: command not found. I manually just did sudo nano (url) and it wasn’t there.

  6. Avatar for Conrad King

    I have this running great, but was wondering if a new version will be made for the raspberry pi 4 4GB as you mentioned 64bit being difficult. Maybe now it’s better with the raspberry pi 4 4gb?

    After finding this I checked out your website and love it! Great work!

  7. Avatar for Matt

    Hey James,

    First of all, thanks for this awesome script and guide!

    I set this up on my Raspberry Pi 4 (4GB) a couple of days ago and was having some performance issues (OutOfMemoryErrors). I found that uninstalling Java 11 and instead switching back to Java 8 solved my issue. I just thought I’d share in case any one else is experiencing something similar.

    1. Avatar for Todd Krein

      Do you have a pointer to the commands to do that? I wonder if that’s the same problem I’m seeing.
      thanks!

  8. Avatar for Juergen

    James, huge thanks for making this detailed guide available

    I am putting up a minecraft server for my kids and this helps avoid the cost of a hosting alternative. The setup I am using is a raspberry Pi 4, 4GB model with a 240gb crucial SSD on the recommended startech adapter and I got it up and running nicely. SSD performance looks decent for the cheapest SSD I could find at the time:
    RandRead: 23030 – RandWrite: 33846 – Read: 30716 – Write: 30686
    Is there any advise on the best render distance this will work with for 3-4 players?

    1. Avatar for Juergen

      actually after 2 weeks or so now I can attest that render distance 12 is absolutely fine. We now even have set it to 16, works ok for up to 5 players

  9. Avatar for Cthulhu president
    Cthulhu president

    Hi guys
    when you have installed the server for couple of month and you want to upgrade , do you have to update SetupMinecraft.sh and launch it again ???
    does it break the current world running ?
    thanks

  10. Avatar for Jukka

    Suggested feature: Automatic backup retention in days, default to 7 or 14.
    These backups ate all me free disk space and caused some issues.
    Is there a suggested work-around? I’m not a Linux specialist, so I need something easy.

    Your script is otherwise fabulous! Thanks!!

  11. Avatar for Bard

    this might be simply me being uneducated in pi, but after running the server for a few minutes I got a message similar to “couldnt locate window running minecraft” or something like that. and the server closed. following this, i could no longer SSH into the pi, and when connected to a monitor it simply black screened. I reformated the SD card and reloaded a clean version of lite onto it. But now the pi will show the lite boot console, run the startup for about 5 seconds, and then goes to a black screen. I have tried reflashing several times from multiple SD cards and cannot get it to work. Any help would be awesome! And great job on the server files!

  12. Avatar for Michael

    Hello. I recently set up the Minecraft server but it never seems to be stable for me. I think I just have poor resources for this, i.e. poor internet connection and a poor microSD card. Is there anyway I can uninstall this program completely from my Raspberry Pi 4? I’ve been looking around and I can’t seem to find an uninstall guide anywhere?
    Thank you.

  13. Avatar for Poul

    Hey James,
    It seems to be running, BUT my intention was for my kids and their friends to have their own server, they are playing Minecraft with their Android tablets and phones, after reading through the posts here, I realized it’s not possible???

    BTW! My Firefox “says” your certificate has expired.

    1. Avatar for Brent

      This guide is for the Java edition of Minecraft, while anything that isn’t a PC runs on Bedrock Edition. This guide doesn’t apply to those devices.

      1. Avatar for Lee Williams

        I found out, after setting up a Bedrock Server, that consoles have to be connected to your LAN to work. Only the Win 10 PC version can access the server from the WAN side.

  14. Avatar for Poul

    Hi James,
    I have an RPi 4 4Gb ram, running Buster desktop with HomeAssistant(HassIO), Portainer, Samba, deCONZ, MariaDB and Mosquitto in Docker on a SanDisk Extreme Pro 128GB USB Solid State Flash Drive.
    Do you think it’s a bad idea/possible to run a Minecraft server on top of all that? IN a container? I’m a total noob but usually gets everything to work 🙂
    Brgds
    Poul

    1. Avatar for jamesachambers

      Hey Poul,

      I think there’s a chance it might work! Since the server runs on 1 GB Pis and I doubt you’re using all 4GB of your memory there should be plenty of room.

      The only thing you will have to watch out for is CPU utilization. If it’s too high you’ll experience lag on the server such as breaking a block and then it doesn’t actually break and fall on the ground for a couple of seconds, etc. I would definitely say to give it a try though, a lot of those services like Samba, home assistant, etc. probably aren’t constantly pulling very much CPU power meaning it may work just fine for you depending on those loads!

    1. Avatar for waiterKK

      On my server it was 6 people at the same time and it was running flawlessly, so I guess there is still plenty of room for more.

  15. Avatar for Miguel

    Hey James Thank you very much for your guide and for your amazing blog.

    Please help me to add the server to my local minecraft client and to be able to play at home with my son. I have followed the steps in the guide but I cannot make my server visible. When I add the server to the minecraft PC client I don’t know which is my server address. I try whith the raspberry pi local IP but it does not work.
    Thanks for your help

    1. Avatar for stizn

      Hello Miguel,

      you have to tell Minecraft which port it can use. The standard port is 25565, so for example your Server adresse could be:
      192.168.1.20:25565 (your IP adress:portnumber)

      I hope that helps.

        1. Avatar for waiterKK

          Show us the output of the following commands:

          ip a s

          and also this one:

          cd ; cat minecraft/server.properties | grep -i port

Leave a Comment

Your email address will not be published. Required fields are marked *

Type here..