Settings and connection to Minecraft Java Game Server on RHEL 9
- In order for the VM to work correctly, you need to open TCP and UDP port 25565 in the instance Security Group
- For the connection to the server, you should know the IP address of the VM.
- To start a server, you need to launch an instance through the AWS Control Panel.
- Run your client to play the Minecraft Java Edition.
- Click “Multiplayer” in the main menu.
- Click “Add Server”.
- In the window, in the Server Name field name the server as you like. In the Server Address field enter the IP address of the VM and click Done
- In the server list, select the previously added server (1) and click Join Server (2)
By using the server you agree to the EULA: Eula | Minecraft
Get your own Minecraft universe!
Manage server settings (optional)
- To manage the server manually, you should connect to a VM.
- To get the password, you should connect to the VM. To do that, generate a “Private Key” in advance. This can be done using the following instructions Guide – How To – Create and use Key Pair to connect to a VM. You need to use the .pem file from step 4 of the guide.
- Run PowerShell
- Enter the command ssh -i “path to .pem file” ec2-user@VM_IP, where:
– “path to .pem file” is the path to the file from subparagraph a) of this paragraph
VM_IP is the IP address of your virtual machine.
- Confirm connection
- To manage the server, you can use the commands described in the ‘Basic Usage’ tab following the link – Deploy Minecraft: Java Edition Game Servers
- In order to enter these commands, you must enter into the VM console:
$sudo su
$su mcserver
- Then go to the directory cd /home/mcserver
- 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
- Also, you can change your config using the command
$sudo vim /home/mcserver/serverfiles/server.properties