This server is totally free and powerful enough for a BedrockServer. In comparison, a similar amount 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.
Enter your details and click "Start my free trial"
Unless you decide to, there won't any charges.
Next, create a virtual machine that will run the Server
Fill in the required 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 pre-set shape may not work with Ubuntu. To change the Image, simply switch the shape to one that does.
Next, we will need to select a virtual clouds network (VCN). If you already have a VCN with a public network, choose it. 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 the "SSH" key pair to be associated with this VM. If you're familiar with this concept and already have a public key that you want to use, choose 'Upload public key files' and upload your public key. If this is your first time using SSH keys, these keys will allow you securely log in to the server. Click 'Generate SSH keys pair' to save your private key and public keys on your local machine. These keys will allow you to log into the VM in a few seconds.
You will need your Private Key to log into the website later so don’t forget this.
Leave the default boot volume values and click Create'.
As soon as you click 'Create', you'll be redirected to the VM details page and your VM instance will be in a PROVISIONING state.
After 30-60 seconds or so, the state will switch to RUNNING . Find your public IP address and copy it.
Next we need to open ports for players to access the server:
Click on Add Ingress Rules
We need to connect to our VM remotely in order to install the Minecraft software. If you are unfamiliar with SSH, I recommend you read this article.
Powershell is a good choice if you're on Windows. Open Powershell and enter this: ssh -i (file path to 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'll want to install multiple programs to start.
https://uooka.com/
These commands can be run:
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
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.
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 via the VM's port and IP to your server. The name of the port is not important.
The server will also stop when you close the terminal. To stop it, you need to type "stop" or close the window and then log back in.
cd Bedrock
Enter.
then run this command again: LD_LIBRARY_PATH=. ./bedrock_server
You should now be able to create a bedrock server that is fully functional. It should have 1 GB RAM and 1 core with xenon, enough for at least 20 players. You can do this for a Java server by following this link.