Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (2024)

If you want to host your own Minecraft Bedrock edition dedicated server, this tutorial is for you.

Be aware that this guide differs from setting up a dedicated server for the Java edition. Minecraft Bedrock edition will allow you and your friends playing on multiple platforms to play on the same server.

Let's get set up.

Creating a Digital Ocean Server

I'm going to use Digital Ocean for this tutorial, with a droplet running Ubuntu 22.04 (LTS).

If you don't have a server yet, you can use my affiliate link for Digital Ocean to get $200 credit to use over 60 days.

DigitalOcean | Cloud Hosting for BuildersSimple, scalable cloud hosting solutions built for small and mid-sized businesses.Cloud Hosting for Builders

Then once you're ready to go, go ahead and begin creating a droplet. As mentioned above, I'm using Ubuntu 22.04 (LTS) for this. If you pick a later edition, it should be okay as well.

⚠️

If you check the Marketplace, you will find there's a Minecraft Java edition application. You should ignore that as it won't work for Bedrock.

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (3)

If you only expect a few friends to play. A regular droplet with a shared CPU will be enough - that will set you back $4 or $6 a month to start out with. You can always scale up the server later should you require a server with more resources.

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (4)

For authenticating with your droplet, you can either use an SSH key or set a password. This is entirely your preference. If you don't know what an SSH key is, that's completely fine - go ahead and pick password instead.

This is what you will use when logging into your droplet later.

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (5)

Before you finish, give your droplet a name and then go ahead and click the "Create Droplet" button to finish this step. It'll take a minute or two to warm up and then you'll be able to access your server.

To access your server, go to your droplets page and find its IP address. You will need to copy this.

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (6)

Open a command line / terminal of your choice and enter the following command: (replacing {ip} with the IP address of your server)

ssh root@{ip}

You can also open up the droplet in the web interface and click on "Console" to open up a web console. It'll allow you to follow along if you're not sure how to use your computer's own terminal.

Setting up the Server

Okay so we're now SSH'd in. Let's go ahead and start provisioning the server. You should be logged in as root so there's no need to prefix any commands with sudo for now.

Let's ensure our server's package repository is up to date

apt update

Followed by upgrading all our packages:

apt upgrade

This will take a minute or two, but ensures our server has the latest security updates.

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (7)

Before moving on, we will want to install unzip for extracting the bedrock server later on.

apt install unzip

Let's add a new user next, this will create a user and give them a home directory. We will later run the server under this user, as it's a security risk to run the server with root privileges.

adduser minecraft-runner

You will be asked to enter a password, make sure to give it a secure password, as this will let you log in (or anybody else) via SSH with said username/password.

The rest of the questions are optional, so you can just press enter until you get to the end. Enter 'Y' and press enter to confirm.

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (8)

Installing The Dedicated Minecraft Bedrock Server

You can obtain the links required to download the server from minecraft.net.

As our server is running Ubuntu, we will want to download the respective server.

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (9)

Agree to the end user license and the download button will become active (do not click the button!). You will want to right click and Copy Link, this will give you the latest version available.

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (10)

Back to the command line, let's switch over and inside the home directory of the user we created. Make a new directory for the server and change it to our working directory.

mkdir /home/minecraft-runner/bedrock-servercd /home/minecraft-runner/bedrock-server

And next up, we'll use the link from earlier to download the latest minecraft bedrock server. Replace {url} with the link you got from minecraft.net.

wget {url}

This will download the file and place it in the current working directory.

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (11)

Extract the zip file by using unzip. Change the file to name of the one you downloaded. If you enter b and press tab, it should autofill the rest for you.

unzip bedrock-server-1.20.41.02.zip

Then let's cleanup and remove the zip file once we're done with it.

rm bedrock-server-1.20.41.02.zip

Running a ls -la shows us everything has been extracted and it's now time to start digging into minecraft settings.

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (12)

Configuring The Minecraft Bedrock Server

First point of all is to open up the server.properties file which houses all the server related settings.

To do that, open up the file in your favourite editor (or nano if you don't have a favourite yet).

nano server.properties

This will allow you to view and edit the server.properties file. It's well documented so tweak it as you see fit to tailor the server to your liking.

Once happy - it's time to fire up the server. Run the following:

LD_LIBRARY_PATH=. ./bedrock_server

And now your server is running!

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (13)

Let's go ahead and try connecting!

Connecting To Your Dedicated Bedrock Server

Take note of your IP and port. The IP is the same one as you used to SSH into the server. As for the port, confirm this in your server.properties file. But if you haven't changed this, it'll be the default (port 19132)

Boot up Minecraft Bedrock edition, and on the "Servers" tab click on "Add Server" at the bottom. You will be prompted to enter your server's name, IP, and port. The name can be anything you like. The server and port need to match your server's IP and port respectively.

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (14)

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (15)

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (16)

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (17)

Once entered, click save to keep it in your server and list and if everything is okay, you should see that the server is online. Connect to it and see your new world!

Keeping The Bedrock Server Running

So you've probably noticed that you need to stay connected to your server via SSH, otherwise your bedrock server will go offline. That isn't very convinient, so let's turn it into a daemon.

A deamon is a process that runs silenty in the background and can be instructed to start on system startup by using something like systemd. That's exactly what we need.

Let's go ahead and create a systemd service. You will need root access for this, so type exit if you used su earlier to switch users.

Create a systemd service with the below and use nano to enter edit mode:

touch /etc/systemd/system/bedrock.servicenano /etc/systemd/system/bedrock.service

Paste the contents below into the file and save. If you changed anything like the user's name or directory, make the edits necessary that work for you.

[Unit]Description=Minecraft Bedrock ServerAfter=network.target[Service]User=minecraft-runnerGroup=minecraft-runnerType=SimpleWorkingDirectory=/home/minecraft-runner/bedrock-serverExecStart=/bin/sh -c "LD_LIBRARY_PATH=. ./bedrock_server"TimeoutStopSec=20Restart=on-failure[Install]WantedBy=multi-user.target

After exiting the file. We need to enable the service:

systemctl enable bedrock.service

Finally, start the service to run the server:

service bedrock start

To check it's running, either connect to the server via your Minecraft client. Or run:

service bedrock status
Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (18)

Looking good!

And that's everything to setting up your own Minecraft Bedrock server. Enjoy! :)

As an expert and enthusiast, I have access to a wide range of information and can provide insights on various topics. While I don't have personal experiences or affiliations, I can provide factual information and answer questions based on available sources.

Now, let's dive into the concepts mentioned in the article about hosting a Minecraft Bedrock edition dedicated server.

Minecraft Bedrock Edition Dedicated Server

The Minecraft Bedrock edition dedicated server allows players on multiple platforms to play on the same server. It differs from setting up a dedicated server for the Java edition. To host your own Minecraft Bedrock edition dedicated server, you can follow the steps outlined in the article.

Digital Ocean

The article suggests using Digital Ocean as the hosting provider for the Minecraft Bedrock edition dedicated server. Digital Ocean offers cloud hosting solutions for small and mid-sized businesses. By creating a droplet (a virtual machine) on Digital Ocean, you can set up and manage your server.

Ubuntu 22.04 (LTS)

The article recommends using Ubuntu 22.04 (LTS) as the operating system for the server. LTS stands for Long-Term Support, which means it will receive updates and security patches for an extended period.

SSH Key or Password Authentication

When authenticating with your droplet, you have the option to use either an SSH key or set a password. SSH keys provide a more secure method of authentication, while passwords are a more familiar option for those who are not familiar with SSH keys.

Server Provisioning and Configuration

After creating the droplet and logging into the server via SSH, you need to ensure that the server's package repository is up to date by running apt update. Then, you can upgrade all the packages by running apt upgrade. This ensures that the server has the latest security updates.

Next, you need to install the unzip package for extracting the Bedrock server later on by running apt install unzip.

To enhance security, the article suggests creating a new user for running the server instead of using the root user. You can create a new user by running adduser minecraft-runner and following the prompts.

Installing the Minecraft Bedrock Server

To download the Minecraft Bedrock server, you can obtain the download link from minecraft.net. The article advises right-clicking on the download button and selecting "Copy Link" to get the latest version available.

After navigating to the user's home directory, create a new directory for the server and change to that directory. Then, use the wget command followed by the download link to download the server file. Extract the downloaded zip file using the unzip command and remove the zip file once extraction is complete.

Configuring the Minecraft Bedrock Server

To configure the server, you need to open the server.properties file using a text editor like nano. This file contains various server-related settings that you can tweak according to your preferences. Once you're satisfied with the configurations, you can start the server by running LD_LIBRARY_PATH=. ./bedrock_server.

Connecting to the Dedicated Bedrock Server

To connect to your dedicated Bedrock server, you need to note the server's IP address and port. The IP address is the same one used to SSH into the server, and the port can be confirmed in the server.properties file. In the Minecraft Bedrock edition, you can add the server by providing its name, IP address, and port in the "Add Server" section.

Keeping the Bedrock Server Running

By default, the Bedrock server requires an active SSH connection to stay online. To make it more convenient, the article suggests turning it into a daemon process using systemd. It provides instructions on creating a systemd service file and enabling and starting the service.

And that's a summary of the concepts mentioned in the article about hosting a Minecraft Bedrock edition dedicated server. If you have any specific questions or need further assistance, feel free to ask!

Setting up a Dedicated Minecraft Bedrock Server Tutorial (2023) (2024)
Top Articles
Latest Posts
Article information

Author: Velia Krajcik

Last Updated:

Views: 5623

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Velia Krajcik

Birthday: 1996-07-27

Address: 520 Balistreri Mount, South Armand, OR 60528

Phone: +466880739437

Job: Future Retail Associate

Hobby: Polo, Scouting, Worldbuilding, Cosplaying, Photography, Rowing, Nordic skating

Introduction: My name is Velia Krajcik, I am a handsome, clean, lucky, gleaming, magnificent, proud, glorious person who loves writing and wants to share my knowledge and understanding with you.