Tutorial - How To Create A Minecraft Server On A VPS

Expires in 9 months

07 July 2022

Views: 8

Minecraft is a popular sandbox video game. It needs to be hosted on a server if you happen to wish to play in multiplayer.

You can rent a pre-built Minecraft server or you can set it up your self on a VPS or on a devoted server. It will cut back the fee and give you full management over your sport instance.

This tutorial explains the best way to launch a Minecraft Java Edition server on an OVHcloud VPS and test its connectivity.

This information will present you the way to make use of one or more OVHcloud solutions with external tools, and will describe the actions to be carried out in a selected context. ou could have to adapt the directions in line with your situation.

When you encounter any difficulties performing these actions, please contact a specialised service provider and/or talk about the difficulty with our group. You will discover extra information within the Go additional part of this guide.


- A Virtual Private Server in your OVHcloud account

- A GNU/Linux distribution put in on the server

- Administrative entry (root) through SSH to your server

- A fundamental understanding of GNU/Linux administration


This tutorial is based on model "1.17" of Minecraft Java Version and OpenJDK version "16.0.1".

Step 1: Prepare the server

Step one is to set up your VPS for a Minecraft set up.

It's endorsed to order a brand new VPS or reinstall an current one from your OVHcloud Management Panel, using the most recent obtainable launch of Ubuntu or Debian. Please seek advice from our Getting began information if needed.

Once the OS is put in, connect with your VPS with SSH as described in the Getting started information.

First replace the packages to their latest versions:

Use the following command to make sure all required packages are put in.

Set up the Java package deal:

To avoid security vulnerabilities in your system, create a user named "minecraft" who will perform the server actions:

Simply press the Enter key to skip filling in the same old account data.

The consumer is now created. Notice that no password was specified for this user. This is regular as a result of the account is just accessible when already connected via SSH with your individual user account.

Swap to the new user:

The following commands have to be executed by the person "minecraft".

To complete the setup preparations, create a folder named server.

Step 2: Install your Vanilla Minecraft server

A "Vanilla" server is an instance with none add-ons or plugins. You'll experience the game the way it was created by the developers.

First you have to to copy/paste the obtain link for the server software. On the official Minecraft web site, right-click on the obtain hyperlink and choose Copy Link Location from the context menu.

Back in your command line terminal, ensure that you're still within the server folder and use wget to obtain the file. Change obtain_link with the precise URL out of your clipboard.

Earlier than launching the server, you have to conform to the tip Person License Agreement. To achieve this, enter the following command.

A file named eula.txt is now positioned at the root degree of your server, containing the line eula=true. This may inform the software program that you just settle for the Minecraft EULA. We invite you to review the phrases and circumstances on the Minecraft web site.

Your server can now be began.

During step 1, we installed the display bundle which allows opening multiple classes of the terminal (shell). We will start Minecraft in a brand new session that may run in the background. Using display screen might be very handy since it gives you the possibility to launch a number of Minecraft servers simultaneously.

First, we'll create a new shell named minecraft1:

The active terminal window will change to a new shell session. You possibly can create a number of shells; checklist them with this command:

To detach from the shell (and keep it working), press Ctrl, then a, then d in your keyboard.

To modify from one shell to a different, use this command:

It's also possible to press Ctrl, then a, then n in your keyboard.

Within the previously created minecraft1 shell, launch the Minecraft server with the following command. (Use ls to confirm the filename in case it differs.)

To shut down your server, enter the command stop.

Step 3: Hook up with the server

Your server instance is now useful. To play the game, obtain the Minecraft consumer from the official Minecraft web site.

Install and launch the shopper in your working system and register.

On the next display screen, enter the server identify in the field Server Identify, and the IP tackle of the server in the sphere Server Address.

By default, no port needs to be specified.

Your Vanilla Minecraft server is now put in in your VPS.

Please observe that this set up guide also needs to work on an OVHcloud dedicated server or a Public Cloud. occasion. With these providers, you'll have the benefit of better stability since the hardware is dedicated.

Go additional

For add-ons, mods and to personalise your Minecraft experience, please seek the advice of this official documentation: https://help.mojang.com/.

Be a part of our neighborhood of users on https://neighborhood.ovh.com/en/.

Did you find this guide helpful?

Please be at liberty to provide any options so as to improve this documentation.

Whether or not your feedback is about photographs, content material, or structure, please share it, so that we are able to enhance it together.

Your help requests won't be processed through this kind. To do Wnat spout , please use the "Create a ticket" form.

Thank you. Your feedback has been acquired.

Read More: https://getspout.org/