How To Create A Free Minecraft Bedrock Server


This server is completely gratuitous and powerful enough to run a Bedrock Server. A similar amount of RAM costs $5 per month.



Follow this link to Oracle Cloud Services website https://www.oracle.com/cloud/sign-in.html?intcmp



Oracle Cloud Services



Click "Sign up!"



3.



Sign up



Verify your email.



Finish entering you details, and and hit start my free trial



Unless you choose to, you won''t be charged.



Next, we will create a virtual Machine to run the Server



Please fill in the following fields



Scroll down to the section ''Image and shape''. Make sure that "Canonical Ubuntu 20.04" is selected, then check that the shape is set to AMD VM.Standard.E2.1.Micro



Note: the shape preset may not support ubuntu, if so, simply switch the shape to the one shown and then change the Image.



Next, we will need to select a virtual clouds network (VCN). If you already own a VCN with public subnets, you can choose that. If you don''t have one, click ''Create new virtual cloud network''. Next, select ''Create an public subnet'' and agree to the default names. Finally, make sure that ''Assign a public IPv4 address'' is selected (otherwise you couldn''t connect to this server from the internet! ).



Now, we need to associate this VM with an "SSH key pair". If you are familiar enough with the concept to be able to upload your public key, or if you already have one, you can choose ''Upload Public Key Files'' to upload it. These keys can be thought of as unique identifiers that will allow you to securely log into your server. Click on ''Generate SSH Key Pair'' to save your private keys and public keys to your local computer. These keys will be used in a short time to log in the VM.



You will need your Private Key to log in later so don’t lose it.



Leave boot volume defaults and click ''Create''.



Click ''Create'' to be redirected the VM details pages. Your VM instance is now in a PROVISIONING condition.



After 30-60 seconds, the state switches to RUNNING. Copy your public IP address.



Next, we need to open ports to allow players to access the server.



Next, click Add Ingress Rules



To install Minecraft software on a VM, we need a remote connection. I recommend you to learn about SSH if you don''t know what it is.



If your on windows (most likely) you can simply use Powershell as your connecting program. Open Powershell, and type this: ssh-i (file path for your private key) ubuntu@VM ip address



BEFORE: This is where you should research how to secure your private key file.



This is how it looks when you log into your vm successfully



Next, you will need to install multiple programs in order to get started.



Run these commands:



sudo aptget install firewalld



These commands will install firewall access, and screen to keep your server running after you start it.



Next, start in powershell during your ssh sessions:



sudo firewall cmd --permanent -zone=public --addport=19132/tcp



sudo firewall-cmd -permanent --zone=public -add-port=19132/udp



sudo firewall cmd --reload



Then:



sudo su - Minecraft



mkdir Bedrock



wget https://minecraft.azureedge.net/bin-linux/bedrock-server-1.17.2.01.zip -O server.zip



unzip server.zip



rm server.zip



If necessary visit https://www.minecraft.net/en-us/download/server/bedrock and check the latest download link and substitute it.
Screamyguy''s Blog



Then, run these commands



chmod +x./bedrock_server



This is the last command that will start your server.



LD_LIBRARY_PATH=. ./bedrock_server



You can now connect to your server using the VM''s IP, and the standard port, the name is unimportant.



But if you close the terminal, your server will also stop. You''ll need stop your server by closing the window or typing "stop" and then logging back in.



cd Bedrock



Type screen into the box and hit enter.



Then, run the following command: LD_LIBRARY_PATH=. ./bedrock_server



Now you should have a functioning bedrock servers with 1GB RAM and 1xenon core. This server can be used by at least 20 players. You can do this for a Java server by following this link.