🌍 How to Host a Minecraft Java Multiplayer Server on Windows or Ubuntu (with Playit.gg)

Want to run your own Minecraft Java server for friends? You don’t need a powerful PC or open ports on your router. With tools like Playit.gg and minimal setup, you can launch a stable multiplayer server on Windows or Ubuntu, even on headless systems (no monitor or GPU).


🧱 Prerequisites

  • A system with Java 17+ (Windows or Ubuntu)

  • Internet access

  • Minecraft server JAR file (Download here)

  • Playit.gg account and agent for port forwarding (free)


πŸ–₯️ Option A: Host Minecraft Server on Windows (RDP or local)

βœ… Step 1: Install Java

  1. Download Java 17 or 21 JDK from https://adoptium.net

  2. Run the installer and complete setup

  3. Verify in Command Prompt:

    java -version

    Output should show Java 17+.


πŸ“ Step 2: Set Up Server Folder

  1. Create a folder: C:\MinecraftServer

  2. Download server.jar from Minecraft Java Server Page

  3. Move it to C:\MinecraftServer


βš™οΈ Step 3: First Launch and Accept EULA

  1. Open Command Prompt:

    cd C:\MinecraftServer
    java -Xmx1G -Xms1G -jar server.jar nogui

  2. The server will fail once and generate eula.txt

  3. Open eula.txt and change:

    eula=false

    to

    eula=true

  4. Run the server again to generate the world and configs


πŸ› οΈ Step 4: Optional – Create a .bat Launcher

Create a file start.bat in C:\MinecraftServer:

@echo off
title Minecraft Server
java -Xmx2G -Xms1G -jar server.jar nogui
pause


🐧 Option B: Host Minecraft Server on Ubuntu (Linux)

βœ… Step 1: Install Java

sudo apt update
sudo apt install openjdk-17-jdk -y
java -version

Ensure it shows Java 17+.


πŸ“ Step 2: Set Up Server Folder

mkdir ~/minecraft-server
cd ~/minecraft-server
wget https://piston-data.mojang.com/v1/objects/e6ec2f64e6080b9b5d9b471b291c33cc7f509733/server.jar


βš™οΈ Step 3: First Launch and Accept EULA

java -Xmx1G -Xms1G -jar server.jar nogui

Then:

nano eula.txt

Change eula=falseeula=true
Then re-run the server.


πŸ› οΈ Optional: Create a Startup Script

nano start.sh

Paste:

#!/bin/bash
cd ~/minecraft-server
java -Xmx2G -Xms1G -jar server.jar nogui

Make it executable:

chmod +x start.sh

Run it with:

./start.sh


🌐 Step 5: Port Forwarding with Playit.gg (Windows & Linux)

πŸ”’ Skip manual router setup — this is a secure tunnel solution.

🧩 Install Playit.gg Agent

  1. Go to https://playit.gg

  2. Download the agent for your OS

  3. Run the agent:

    • Windows: Double-click playit.exe

    • Linux:

      chmod +x playit
      ./playit

  4. It will open a browser — login or create an account


🌐 Step 6: Create a Minecraft Tunnel

  1. In your Playit dashboard:

    • Go to Tunnels > Add Tunnel

    • Select "Minecraft Java (game)"

    • Use Shared IP

    • Target port: 25565 (default Minecraft port)

  2. Copy your public tunnel address, e.g.:

    market-velocity.gl.joinmc.link


πŸ“ Step 7: Configure server.properties (Optional)

Open server.properties and adjust:

server-port=25565
online-mode=true
motd=A Minecraft Server on RDP/Linux
enable-command-block=true

You can also change:

  • gamemode=survival/creative

  • max-players=10

  • difficulty=easy/normal/hard


πŸ§ͺ Step 8: Test and Play!

  • Open Minecraft Java Edition

  • Go to Multiplayer > Add Server

  • Use the tunnel address:

    147.185.221.28:56662

  • Join the server!


πŸ“ Notes & Tips

  • βœ… You don’t need to open any router ports

  • 🧠 Java 17+ is required for recent Minecraft versions

  • 🚫 Avoid running the game client on low-spec RDP/VPS — just host

  • πŸ” Use start.bat or start.sh to automate the launch

  • 🧾 Monitor logs in terminal for activity and errors


πŸ“¦ Bonus: Sample Files

start.bat (Windows)

@echo off
java -Xmx2G -Xms1G -jar server.jar nogui
pause

start.sh (Linux)

#!/bin/bash
cd ~/minecraft-server
java -Xmx2G -Xms1G -jar server.jar nogui

server.properties (Common Settings)

server-port=25565
max-players=10
motd=Welcome to My Server!
gamemode=survival
online-mode=true
enable-command-block=true


🏁 Conclusion

You now have a fully working Minecraft Java multiplayer server hosted on Windows or Ubuntu, using Playit.gg for zero-hassle tunneling. This setup works on:

  • πŸ’» Local PC

  • πŸ–₯️ Headless Linux VPS

  • πŸ§‘‍πŸ’Ό Windows RDP with no GPU


2 Comments

Vicky Kumar

You can check server status from the API below: https://imvickykumar999.online

Vicky

You can also read on medium: https://imvickykumar999.medium.com/how-to-host-a-minecraft-java-multiplayer-server-on-windows-or-ubuntu-with-playit-gg-656c28ab1bf1

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading...