Skip to content

Commit 60e1c04

Browse files
Merge pull request #3430 from dneary/feature/minecraft-oci-always-free
Feature/minecraft oci always free
2 parents 416b15f + d295e61 commit 60e1c04

14 files changed

Lines changed: 259 additions & 0 deletions
62.5 KB
Loading
69.3 KB
Loading
199 KB
Loading
69.7 KB
Loading
67.2 KB
Loading
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: Running a Minecraft server on OCI A1 Arm64 instances
3+
4+
minutes_to_complete: 10
5+
6+
who_is_this_for: Learners who are new to OCI and want a guided path from “provisioning an instance” to “running a persistent Minecraft server”.
7+
8+
learning_objectives:
9+
- Provision an OCI A1 Arm64 virtual machine instance suitable for running a Minecraft server
10+
- Deploy and configure Minecraft server software
11+
- Expose the Minecraft service from OCI by editing the network policy for the instance
12+
- Connect to the running Minecraft server from the Minecraft client application
13+
14+
prerequisites:
15+
- Complete the [Get started with Oracle Cloud Infrastructure](../csp/oci/) learning path
16+
- Install software that allows you to connect to a running instance over SSH
17+
- Install the Minecraft client on your local laptop, and ensure that you have a Microsoft
18+
or Mojang account to log in (it will help if you know the basics of playing Minecraft too)
19+
20+
author: Dave Neary <dneary@amperecomputing.com>
21+
22+
### Tags
23+
skilllevels: Introductory
24+
subjects: Web
25+
armips:
26+
- Neoverse
27+
tools_software_languages:
28+
- Java
29+
- Minecraft
30+
operatingsystems:
31+
- Linux
32+
33+
34+
further_reading:
35+
- resource:
36+
title: How To Setup And Run A Free Minecraft Server In The Cloud
37+
link: https://blogs.oracle.com/developers/how-to-setup-and-run-a-free-minecraft-server-in-the-cloud
38+
type: blog
39+
- resource:
40+
title: How to create a powerful Minecraft Server for free using Oracle Cloud
41+
link: https://www.youtube.com/watch?v=0kFjEUDJexI
42+
type: video
43+
44+
45+
46+
### FIXED, DO NOT MODIFY
47+
# ================================================================================
48+
weight: 1 # _index.md always has weight of 1 to order correctly
49+
layout: "learningpathall" # All files under learning paths have this same wrapper
50+
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content.
51+
---
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# ================================================================================
3+
# FIXED, DO NOT MODIFY THIS FILE
4+
# ================================================================================
5+
weight: 21 # The weight controls the order of the pages. _index.md always has weight 1.
6+
title: "Next Steps" # Always the same, html page title.
7+
layout: "learningpathall" # All files under learning paths have this same wrapper for Hugo processing.
8+
---
143 KB
Loading
116 KB
Loading
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: Connecting the Minecraft client to the server
3+
weight: 4
4+
5+
### FIXED, DO NOT MODIFY
6+
layout: learningpathall
7+
---
8+
9+
## Connecting the Minecraft client to the server
10+
11+
### Opening the port for the Minecraft server
12+
13+
Before we connect to the Minecraft server, we will change the network policy to allow clients to
14+
connect to the Minecraft server over TCP port number 25565. To do this, we need to modify the
15+
networking settings for our instance in the OCI dashboard.
16+
17+
1. On the OCI Instances page, choose your Minecraft server instance.
18+
2. In the Networking tab, click on the subnet name:
19+
![OCI instance networking](OCI_instance_networking.png)
20+
3. On the Security tab of the subnet page, choose the security list which is active for the instance
21+
(by default, this is called "Default Security List for vcn-xxxxxxxx")
22+
![Default Security List for subnet](subnet_security_list.png)
23+
4. Under "Security rules", add a new Ingress rule (this means the rule applies to incoming traffic
24+
from outside the instance). Set "Source CIDR" to "0.0.0.0/0" (this means all IP addresses can
25+
connect), and set the "Destination Port Range" field to 25565.
26+
![Open port 25565 for Minecraft server](open_minecraft_port.png)
27+
28+
You will also need to update your local firewall to allow connections to port 25565 on your instance.
29+
Reconnect to your instance with SSH, and run the following commands on Oracle Linux:
30+
```
31+
sudo firewall-cmd --permanent --add-port=25565/tcp
32+
sudo firewall-cmd --reload
33+
```
34+
or the following commands on Ubuntu:
35+
```
36+
sudo ufw allow 25565/tcp
37+
sudo ufw reload
38+
```
39+
40+
You should now be able to run your Minecraft server on the OCI instance, then start your client, log in as
41+
usual, and connect to your brand new server!
42+
43+
### Connecting to the server from the Minecraft client
44+
45+
1. Start your Minecraft client and log in as usual.
46+
2. Choose "Multiplayer" mode - read and click through the warning that third party servers are not operated
47+
by Mojang.
48+
3. To add your server to the menu of available servers, choose "Add server", name your server
49+
something meaningful ("My OCI server" for example) and put the IP address of your instance into the
50+
"Server Address" field:
51+
![Configuring new server](configuring_new_minecraft_server.png)
52+
53+
You can now join the server and start building!
54+
![Connecting to your new server running on OCI](connecting_to_server.png)
55+
56+
You can also share the address with your friends to start building a shared world. Have fun!
57+
58+
59+

0 commit comments

Comments
 (0)