Guidance on usage: Minecraft Java Game Server on Red Hat 8.6

Configuration and connection to Minecraft Java Game Server on Red Hat 8.6

  1. For the connection to the server, you should know the IP address of the VM. You can find it in the personal account of Azure. (You need to select the virtual machine from the list. By clicking the item “Overview”, your IP is displayed in the line “Public IP Address”).

In order for VM to work correctly, you need to open TCP and UDP ports 25565 and 25575 in Azure Firewall

  1. To start the server, you need to start the VM through Azure Portal.
  1. Run your client to play the Minecraft Java Edition.
  1. Click “Multiplayer” in the main menu.
  1. Click “Add Server”.
  1. In the window, in the “Server Name” (1) field, name the server as you like. In the “Server Address” (2) field, enter the IP address of the VM and click “Done” (3)
  1. In the server list, select the previously added server and click “Join Server”

By using the server, you agree to the EULA: Eula | Minecraft

Server settings management (optional)

  1. Download and run PuTTY, then in the “Host Name” field, enter the address of the VM. Then click “Open” to connect.
  1. In the opened console, you will need to enter the login and password specified while creating the VM.
  1. To manage the server, you can use the commands described in the “Basic Usage” tab following the link – Deploy Minecraft: Java Edition Game Servers
  1. In order to enter these commands, you must enter into the VM console:

$sudo su 

$su steamuser

  1. Then go to the directory cd /home/steamuser
  1. Now you can enter special commands to control the server. By entering e.g.: $./mcserver dt

you can find out the state of the server

  1. Also, you can change your config using the command 

$sudo nano /home/steamuser/serverfiles/server.properties

Now you can enjoy playing on your Minecraft server.