-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Vicky Kumar edited this page Jun 7, 2025
·
1 revision
- Ensure your Windows machine has enough RAM and CPU (8 GB RAM minimum recommended).
- Close unnecessary programs to free resources.
- Keep Windows updated.
- Download the latest Java server
.jarfrom Minecraft.net. - Place
server.jarin its own folder (e.g.,C:\Minecraft\JavaServer\). - Create
start-java.batwith optimized JVM flags:
@echo off
title Minecraft Java Server
java -Xms5G -Xmx6G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=50 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -jar server.jar nogui
pause- Configure
server.propertiesas needed. - Start the Java server to generate the world.
- Download the Bedrock server zip for Windows from Minecraft.net.
- Extract to its own folder (e.g.,
C:\Minecraft\BedrockServer\). - Create
start-bedrock.bat:
@echo off
title Minecraft Bedrock Server
cd /d "%~dp0"
bedrock_server.exe
pause- Edit
server.propertiesfor Bedrock as needed (e.g., setgamemode=creative). - Start the Bedrock server.
- Since running both simultaneously on 8 GB RAM is tight, run only one server at a time for best performance.
- Allocate RAM accordingly:
| Server Type | RAM Allocation |
|---|---|
| Java | 5–6 GB (-Xmx5G to 6G) |
| Bedrock | ~1.5 GB (native) |
| Windows + Other | ~1.5–2 GB |
- If running both simultaneously, reduce Java RAM (e.g., 3G) and be mindful of lag.
- Java default port:
25565 - Bedrock default port:
19132(UDP)
-
Port Forward both ports on your router to your PC.
-
Use tunneling services like:
- Playit.gg — supports both Java and Bedrock tunnels.
- FRP or ngrok (with limitations on UDP).
- Tailscale/ZeroTier VPN for private access.
- Launch servers via their respective
.batfiles. - Consider creating a master
.batlauncher with a menu to choose which server to run. - Monitor CPU/RAM usage and adjust JVM flags as needed.
- Regularly backup your worlds.
- If you want Bedrock players to join your Java server seamlessly, set up GeyserMC as a proxy.
- This allows one world, one IP, but requires advanced config.
Run one server at a time if possible on an 8 GB machine to ensure smooth gameplay.