Are you looking for a fun way to pass the time during the pandemic lockdown? Look no further! In this tutorial, we will show you how to create a simple Minecraft server using Oracle Cloud. Whether you want to host a server for you and your friends or simply enjoy the game on your own, Oracle Cloud’s services are perfect for the task. Let’s get started!
Creating an Oracle Cloud Account
Before we begin, let’s create an account on Oracle Cloud. Don’t worry, there are free services available for you to use. Simply visit the Oracle Cloud Free Tier landing page and sign up for an account. During registration, you’ll be asked to provide your credit card details, but don’t worry, it’s only to prevent abuse of the services. Once you’ve completed the registration, you can log in to Oracle Cloud using the provided link.
Creating an Oracle Cloud Instance
Once you’re logged in to Oracle Cloud, it’s time to create an instance for your Minecraft server. Click on “Create a VM instance” at the bottom left of the page. Provide a name for your instance, such as “Minecraft Server.”
Next, choose an Ubuntu image for your server. If you’re playing the Java edition of Minecraft, consider selecting the Arm-based processor option for better performance. You can also create a new network and assign a public address for your server.
Configuring Your Instance
After creating the instance, we need to configure some settings. Download the SSH keys provided by Oracle Cloud and save them in your project folder. These keys will allow you to connect to your server in the future.
Next, we need to configure the firewall to allow Minecraft client connections to your server. Add two ingress rules for TCP and UDP protocols with the destination port set to 19132, the default port for the Bedrock edition of Minecraft.
Downloading and Setting Up the Minecraft Server
Now that our instance is configured, we can connect to it and download the Minecraft server. Follow the guide provided on the Oracle Cloud website to connect to your instance using either a Unix-style system (such as macOS) or a Windows system.
Once connected to your instance, navigate to the directory where you want to install the Minecraft server. Download the server by using the
curl command and specifying the download link. Unzip the downloaded file and remove the
Configuring the Server Properties
If desired, you can modify the server properties, such as the server name and difficulty level. Open the
server.properties file using a text editor like Vim and make the necessary changes. Save the file and exit the editor.
Starting the Minecraft Server
Once the server properties are configured, you can start the Minecraft server using the command provided in the Oracle Cloud documentation. You have the option to run the server in the foreground or in the background using the
screen command. Running the server in the background allows you to detach from the instance without shutting down the server.
Connecting to Your Minecraft Server
With the server up and running, you can now connect to it using your Minecraft client. Make sure the game version on your client matches the server version. Enter the server address (the IP address of your instance) and the default port (19132) in the Minecraft client’s server list. Connect to the server and start your adventure!
Keeping Your Server Running 24/7
If you want your server to stay online even when your computer is turned off, you can use the
screen command to run the server in the background. This will allow you to detach from the instance without shutting down the server. You can then reattach to the server whenever you want.
That’s it! You’ve successfully set up a Minecraft server on Oracle Cloud. Now you can enjoy the game with your friends or create amazing worlds on your own. Stay safe, stay home, and have fun playing Minecraft!