This is a self contained easy to use minecraft server and does not require root or any modification in your system. Simply follow the instructions below to get started!
git clone https://github.com/supremegamers/minecraft && cd minecraft
Easy to get started but could result in slow networking among Asians
-
Get ngrok auth token from https://dashboard.ngrok.com/get-started/your-authtoken
- Login with Github there
- Copy the token once you are logged in
-
Run the server in the following manner
bash start.sh your_token
- Then it will give you server address for sharing and your friends can join with it from Minecraft.
Slightly compilcated for the first time but offers more stable networking in most cases.
You don't need any token for it. Simply run it as below:
TUNNEL=cloudflare bash start.sh
But your friends will need to install a program for connecting to it.
Your linux friends needs to run the following once:
sudo wget -O /usr/bin/cloudflared "https://github.com/cloudflare/cloudflared/releases/download/2021.8.2/cloudflared-linux-amd64" && sudo chmod 755 /usr/bin/cloudflared
Later for connecting anytime:
cloudflared access tcp --hostname https://the-server-address-you-shared.com --url 127.0.0.1:25565
Your windows friends needs to install cloudflared for the first time, from here.
Later for connecting anytime your friend needs to either open CMD/PowerShell and run the following:
cloudflared access tcp --hostname https://the-server-address-you-shared.com --url 127.0.0.1:25565
After your friends have run cloudflared command they can join from Minecraft with the following server address:
127.0.0.1:25565
Spoiler
Enjoy if you can.
Protip: You can allocate more RAM for better performance, here is an example:
ALLOC_MEM=8G bash start.sh