Configuration and connection to Minecraft Java Game Server on Ubuntu 22.04 Minimal
1. To start the server, you just need to start the VM through Azure Portal.
2. 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 of “Public IP Address”).
3. To work, you should open TCP 25565,25575 – UDP 25565 ports in the Azure Firewall.
To work, you should open TCP 25565,25575 – UDP 25565 ports in Azure Firewall.
3. Run your client to play the Minecraft Java Edition.
4. Click “Multiplayer” in the main menu.
5. Click “Add Server”.
6. In the window, in the “Server Name” field, name the server as you like.
7. In the “Server Address” field, enter the IP address of the VM and click “Done”.
8. In the server list, select the previously added server and click “Join Server”.
Server settings management
1. With OpenSSH
1.1 In the Windows 10 operating system (starting with version 1809), an OpenSSH client is available, with which you can connect to Linux servers via SSH. If the version of Windows 10 is suitable and the OpenSSH client is installed, then you can start connecting via SSH. To do this, launch a normal Windows command prompt and enter the command “ssh “. In response, you should receive information about working with this command.
1.2 In general, the syntax of the “ssh ” command is as follows:
ssh user@server
Where “user” is the username that was specified while creating the virtual machine and “server” is the VM IP address.
1.3 In the opened console, it is necessary to enter a password that was specified while creating the virtual machine.
1.4 In order to enter these commands, you have to enter sudo su into the VM console.
1.5 Then enter su steamuser and after that change the directory cd /home/steamuser.
1.6 Now you can enter special commands to control the server. For example, by entering ./mcserver details, you can find out the state of the server.
2. With the PuTTY application
2.1 To do this, you need the PuTTY application to connect via ssh. You can download it at the following link – Download
2.2 Run PuTTY, enter the VM address in the “Host” field and click “Open” to connect.
2.3 In the opened console, you will need to enter the login and password specified while you created the VM.
2.4 To manage the server, you can use the commands described in the basic usage tab on the page – https://linuxgsm.com/lgsm/mcserver/
2.5 In order to enter these commands, you have to enter sudo su into the VM console.
2.6 Then enter su steamuser and after that change the directory cd /home/steamuser.
2.7 Now you can enter special commands to control the server. For example, by entering ./mcserver details, you can find out the state of the server.
Now you can use your new Minecraft server.