Host your own FREE Minecraft Server (GitHub Codespaces)

Опубликовано: 26 Июнь 2026
на канале: KLuV
981
17

Prepare the Codespace

Create a Private Repo on GitHub (e.g., mc-bedrock).
Launch a Codespace (standard 2-core/8GB RAM is fine).
Open the Terminal

Create a Folder and Open it:

mkdir foldername
cd foldername

Download the Latest Linux Server:

wget https://www.minecraft.net/bedrockdedi...
(Note: If this link expires, get the latest one from minecraft.net/download/server/bedrock)

Unzip the files:

unzip bedrock-server-1.26.14.1.zip


Create a New Terminal

Install Playit by copying the command here:

playit.gg/download/linux

Launch:

playit

Click the link it generates to log in.
Crucial: When adding the tunnel on the website, select Minecraft Bedrock.
Save the IP and Port it gives you (Bedrock requires both)

Open a new terminal tab in Codespaces
Navigate to your folder:

cd foldername

Start the Server:
./bedrock_server

After starting you can start typing minecraft commands on the console

Notes:

Auto-Shutdown: GitHub Codespaces will shut down if you close the browser tab or stay inactive for 30 minutes. To keep it open you need to type at least one thing every 25 mins or so.

The IP is Permanent: As long as you don't delete the tunnel in playit.gg, that ply.gg address will always point to your Codespace whenever it is turned on.


Other Setups:

You can edit the server.properties file to choose your seed, max view distance, which world to launch (If you have multiple worlds in the worlds folder), max number of players, simulation distance and more.

You could also import a world and unzip it into the worlds folder and choose that world to run on the server.properties file.

You may be able to use other port forwarding services aside from Playit.gg but I primarily chose it for this video as it is easy to setup and is ofter free compared to others.

Hosting a Java Edition Server may have different instructions or extra steps + Java Edition has different server softwares (Paper, Spigot, Vanilla and more) while Bedrock only has a few that are popular (BDS, Pocketmine, Nukkit). Vanilla and BDS are normal Minecrsft while other softwares sre different which support plugins/mods snd may have a different experience than normal Minecraft.