- Thread Author
- #2
For anyone looking to host a quality, free minecraft server, follow this guide
uses free google cloud $300 credit
note: if you've used the free $300 with google cloud before, make a new gmail and use it on that
Kisspls like, this took some time to put togetherKiss
Hidden Content
1. go tohttps://cloud.google.com/ and get started free
2. create account, verify it. they DONT charge/renew anything.
you should be given $300 free credit, go to dashboard/console
3. you will see this, click 'compute engine'
4. click VM instances and start creating server as follows
i used Series: E2
Machine type: e2-standard-4 (4 vCPU, 16GB memory)
make sure you up size to 20GB disk here, and make sure image is Debian GNU/Linux 10 (buster)
scroll down and expand the 'networking' tab.
add 'minecraft-server' as a network tag
hit 'create' at the bottom, and it will bring you to the VM instance page
on VM instance page, hit 'set up firewall rules'
at top of page, press 'create firewall rule'
set up a firewall rule as follows:
make sure you use source IP range as 0.0.0.0/0
and specified protocol/port as TCP 25565
once this is done, save and go back to firewall page (if you were brought back to VM instance page, press setup firewall rules again)
press 'external IP addresses' on left side, and reserve a static IP. attach this to the instance you just created.
go back to the VM instance dashboard, you will see your server should have a green checkmark, it means its active.
on far right, see 'SSH' next to the instance, press this and it will launch SSH session, which is what we will use to run the server
once this opens, you will see a console window appear
run the following commands in the cmd window that appears:
Code:
next run this line: (TYPE Y after running this to confirm installation)
Code:
once this finishes, you can verify java installation by running following command:
Code:
You will see something like this:
FOR LATEST VERSION MINECRAFT 1.18 YOU WILL NEED JAVA VERSION 17+
The default version isn't the latest most of the time.
Please follow this guide on how to update Java to this version, it's simple if you do it right. You need this for 1.18.x
CLICK ME(computingforgeeks.com)
Next, run these commands separately:
Code:
These lines install the screen package, makes a minecraft directory, and changes our current location to this directory respectively.
Go here:https://www.minecraft.net/en-us/download/server
Copy the link location for the server.jar like this:
Now, with this link, go back to the console and type this code: (REPLACE <link> WITH THE LINK YOU JUST COPIED)
Code:
it will download the server files to the directory now.
Rename the file using this command:
Code:
Now, execute this command to run the server (nearly):
Code:
NOTE: -Xmx10240M -Xms10240M is for 10GB of RAM, adjust to whatever you want but dont go above 12
It will interrupt the process and ask you to accept the Minecraft EULA.
To do so, run these lines SEPARATELY:
Code:
Change eula=false to eula=true
run the following command to run screen:
Code:
now try start the server again with the following:
Code:
You can detach from this 'screen' using CTRL+A+D
You can re-attach to this screen by typing 'screen -r' in console
Your server should now be running off this VM instance. You can stop it using /stop in the 'Minecraft server' screen.
Connect to the minecraft server by going back to the 'External IP addresses' page and looking at the IP you reserved previously. you can see it under 'external IP address'
copy this, paste into minecraft and PUT :25565 after!
example: 11.11.11.111:25565
congratulations! if you have any questions I will answer them in replies
if you follow my guide, this server will last 2 months before you gotta either renew or backup and transfer somewhere else.
like or be erased
PepeGlad
Discord Nitro / Phone verifications
https://sellix.io/schrader
uses free google cloud $300 credit
note: if you've used the free $300 with google cloud before, make a new gmail and use it on that
Kisspls like, this took some time to put togetherKiss
Hidden Content
1. go tohttps://cloud.google.com/ and get started free
2. create account, verify it. they DONT charge/renew anything.
you should be given $300 free credit, go to dashboard/console
3. you will see this, click 'compute engine'
4. click VM instances and start creating server as follows
i used Series: E2
Machine type: e2-standard-4 (4 vCPU, 16GB memory)
make sure you up size to 20GB disk here, and make sure image is Debian GNU/Linux 10 (buster)
scroll down and expand the 'networking' tab.
add 'minecraft-server' as a network tag
hit 'create' at the bottom, and it will bring you to the VM instance page
on VM instance page, hit 'set up firewall rules'
at top of page, press 'create firewall rule'
set up a firewall rule as follows:
make sure you use source IP range as 0.0.0.0/0
and specified protocol/port as TCP 25565
once this is done, save and go back to firewall page (if you were brought back to VM instance page, press setup firewall rules again)
press 'external IP addresses' on left side, and reserve a static IP. attach this to the instance you just created.
go back to the VM instance dashboard, you will see your server should have a green checkmark, it means its active.
on far right, see 'SSH' next to the instance, press this and it will launch SSH session, which is what we will use to run the server
once this opens, you will see a console window appear
run the following commands in the cmd window that appears:
Code:
sudo apt update
next run this line: (TYPE Y after running this to confirm installation)
Code:
sudo apt install default-jdk
once this finishes, you can verify java installation by running following command:
Code:
java -version
You will see something like this:
FOR LATEST VERSION MINECRAFT 1.18 YOU WILL NEED JAVA VERSION 17+
The default version isn't the latest most of the time.
Please follow this guide on how to update Java to this version, it's simple if you do it right. You need this for 1.18.x
CLICK ME(computingforgeeks.com)
Next, run these commands separately:
Code:
Code:
sudo apt install screen
mkdir minecraft
cd minecraft
These lines install the screen package, makes a minecraft directory, and changes our current location to this directory respectively.
Go here:https://www.minecraft.net/en-us/download/server
Copy the link location for the server.jar like this:
Now, with this link, go back to the console and type this code: (REPLACE <link> WITH THE LINK YOU JUST COPIED)
Code:
wget <link>
it will download the server files to the directory now.
Rename the file using this command:
Code:
mv server.jar minecraft_server.1.18.1.jar
Now, execute this command to run the server (nearly):
Code:
java -Xmx10240M -Xms10240M -jar minecraft_server.1.18.1.jar nogui
NOTE: -Xmx10240M -Xms10240M is for 10GB of RAM, adjust to whatever you want but dont go above 12
It will interrupt the process and ask you to accept the Minecraft EULA.
To do so, run these lines SEPARATELY:
Code:
Code:
ls
nano eula.txt
Change eula=false to eula=true
run the following command to run screen:
Code:
screen -S "Minecraft server"
now try start the server again with the following:
Code:
java -Xmx10240M -Xms10240M -jar minecraft_server.1.18.1.jar nogui
You can detach from this 'screen' using CTRL+A+D
You can re-attach to this screen by typing 'screen -r' in console
Your server should now be running off this VM instance. You can stop it using /stop in the 'Minecraft server' screen.
Connect to the minecraft server by going back to the 'External IP addresses' page and looking at the IP you reserved previously. you can see it under 'external IP address'
copy this, paste into minecraft and PUT :25565 after!
example: 11.11.11.111:25565
congratulations! if you have any questions I will answer them in replies
if you follow my guide, this server will last 2 months before you gotta either renew or backup and transfer somewhere else.
like or be erased
PepeGlad
Discord Nitro / Phone verifications
https://sellix.io/schrader