
Host a Minecraft - Java Edition (Fabric) Dedicated Server
Fabric Minecraft server with mod support and optional built-in voice chat. Fabric is a lightweight, modular mod loader for Minecraft, known for fast updates and excellent performance. Supports automatic Fabric installer/loader resolution, Aikar's flags, and Simple Voice Chat integration. Runs in Docker for isolated resource management.
Hardware Requirements
Here's what you need to run a Minecraft - Java Edition (Fabric) dedicated server.
Economy
Small server, 1-10 players
Standard
Community server, 10-40 players
Pro
Large server, 40-200 players
Start hosting from your own computer
Run a Minecraft - Java Edition (Fabric) server on your desktop, laptop, VPS, or dedicated machine — GameCP automates Docker setup, resource allocation, and Minecraft - Java Edition (Fabric) configuration instantly. Automatic port forwarding means your friends can connect without touching your router. Start local, scale to a VPS when you're ready.
Setup in 4 Steps
Skip the manual installation, port forwarding, and configuration. Install on your own computer and start hosting instantly.
The Manual Way vs. GameCP
Manual Setup
- ✗Configure 4+ firewall ports and router settings
- ✗Write systemd service files
- ✗SSH into server to edit configs
- ✗Requires a VPS or dedicated server
- ✗30-60 minutes if experienced
With GameCP
- Automatic port forwarding — no router config
- Host from your own PC, VPS, or dedicated server
- Docker container with auto-restart
- Visual config editor in browser
- Under 5 minutes total
Under the Hood
The full manual process to host a Minecraft - Java Edition (Fabric) dedicated server on a VPS. Or install GameCP on your own computer and skip all of this.
Configure & Prepare
Set your server settings, then install Docker, and pull the Minecraft - Java Edition (Fabric) container image.
# Update system and install Docker sudo apt update && sudo apt install -y docker.io sudo systemctl enable --now docker # Create game server directory sudo mkdir -p /opt/gameserver # Server configuration export GAMEMODE="survival" export DIFFICULTY="easy" export LEVEL_NAME="world" export PVP="true" export SPAWN_MONSTERS="true" export WHITE_LIST="false" export ALLOW_FLIGHT="true" export SPAWN_PROTECTION="16" export HARDCORE="false" export FORCE_GAMEMODE="false" export ALLOW_NETHER="true" export LEVEL_TYPE="minecraft:normal" export GENERATE_STRUCTURES="true" export ONLINE_MODE="true" export ENFORCE_WHITELIST="false" export ENFORCE_SECURE_PROFILE="true" export ENABLE_RCON="false" export ENABLE_QUERY="true" export ENABLE_STATUS="true" export ENABLE_COMMAND_BLOCK="false" export VIEW_DISTANCE="10" export SIMULATION_DISTANCE="10" export MAX_TICK_TIME="60000" export NETWORK_COMPRESSION_THRESHOLD="256" export VOICE_CHAT_ENABLED="true" export VOICE_MAX_DISTANCE="48" export VOICE_WHISPER_DISTANCE="24" export VOICE_ENABLE_GROUPS="true" # Pull the container image docker pull eclipse-temurin:21-jre-alpine
Run the Installation Script
Minecraft - Java Edition (Fabric) uses a custom install script to download and configure the server files.
#!/bin/bash
apt update
apt install -y wget curl jq
cd /opt/gameserver || { echo "Failed to change directory to /opt/gameserver"; exit 1; }
# Accept EULA
echo "Accepting EULA..."
echo "eula=true" > eula.txt
# Resolve Minecraft version
MC_VERSION="${MINECRAFT_VERSION:-latest}"
FABRIC_META="https://meta.fabricmc.net/v2"
if [ "$MC_VERSION" = "latest" ]; then
echo "Fetching latest stable Minecraft version for Fabric..."
MC_VERSION=$(curl -sSL "$FABRIC_META/versions/game" | jq -r '[.[] | select(.stable==true)][0].version')
echo "Latest stable version: $MC_VERSION"
elif [ "$MC_VERSION" = "snapshot" ]; then
echo "Fetching latest snapshot version for Fabric..."
MC_VERSION=$(curl -sSL "$FABRIC_META/versions/game" | jq -r '[.[] | select(.stable==false)][0].version')
echo "Latest snapshot version: $MC_VERSION"
else
echo "Using specified version: $MC_VERSION"
fi
# Get latest stable Fabric loader version
echo "Fetching latest Fabric loader version..."
LOADER_VERSION=$(curl -sSL "$FABRIC_META/versions/loader" | jq -r '[.[] | select(.stable==true)][0].version')
echo "Using Fabric loader: $LOADER_VERSION"
# Get latest Fabric installer version
echo "Fetching latest Fabric installer version..."
INSTALLER_VERSION=$(curl -sSL "$FABRIC_META/versions/installer" | jq -r '.[0].version')
echo "Using Fabric installer: $INSTALLER_VERSION"
# Download and run Fabric installer
echo "Downloading Fabric installer $INSTALLER_VERSION..."
wget -q "https://maven.fabricmc.net/net/fabricmc/fabric-installer/$INSTALLER_VERSION/fabric-installer-$INSTALLER_VERSION.jar" -O fabric-installer.jar
echo "Running Fabric installer for MC $MC_VERSION with loader $LOADER_VERSION..."
java -jar fabric-installer.jar server -mcversion $MC_VERSION -loader $LOADER_VERSION -downloadMinecraft
# Rename JARs to match standard naming
mv server.jar minecraft-server.jar 2>/dev/null || true
mv fabric-server-launch.jar server.jar
echo "serverJar=minecraft-server.jar" > fabric-server-launcher.properties
# Cleanup installer
rm -f fabric-installer.jar
echo "Fabric server installed successfully."
# Install Simple Voice Chat mod if enabled
VOICE_ENABLED="${VOICE_CHAT_ENABLED:-false}"
if [ "$VOICE_ENABLED" = "true" ] || [ "$VOICE_ENABLED" = "1" ]; then
echo "Voice Chat enabled. Installing Simple Voice Chat mod..."
mkdir -p mods
MODRINTH_API="https://api.modrinth.com/v2/project/simple-voice-chat/version?loaders=%5B%22fabric%22%5D&game_versions=%5B%22$MC_VERSION%22%5D"
VOICE_URL=$(curl -sSL "$MODRINTH_API" | jq -r '.[0].files[0].url // empty')
if [ -z "$VOICE_URL" ]; then
echo "No exact version match, trying latest Fabric build..."
MODRINTH_API="https://api.modrinth.com/v2/project/simple-voice-chat/version?loaders=%5B%22fabric%22%5D"
VOICE_URL=$(curl -sSL "$MODRINTH_API" | jq -r '.[0].files[0].url // empty')
fi
if [ -n "$VOICE_URL" ]; then
wget -q "$VOICE_URL" -O mods/voicechat.jar
echo "Simple Voice Chat mod installed."
else
echo "WARNING: Could not find Simple Voice Chat for Fabric. Skipping."
fi
else
echo "Voice Chat disabled. Skipping mod install."
fi
echo "Install Completed"Open Firewall Ports
Minecraft - Java Edition (Fabric) requires 4 ports to be open for game traffic and queries.
sudo ufw allow 25565/tcp sudo ufw allow 25575/tcp sudo ufw allow 25566/both sudo ufw allow 24454/udp
Launch the Server
Start the Minecraft - Java Edition (Fabric) server using the configuration from Step 1.
docker run -d \ --name minecraft-java-fabric-server \ -p 25565:25565/tcp \ -p 25575:25575/tcp \ -p 25566:25566/both \ -p 24454:24454/udp \ -e GAMEMODE="survival" \ -e DIFFICULTY="easy" \ -e LEVEL_NAME="world" \ -e PVP="true" \ -e SPAWN_MONSTERS="true" \ -e WHITE_LIST="false" \ -e ALLOW_FLIGHT="true" \ -e SPAWN_PROTECTION="16" \ -e HARDCORE="false" \ -e FORCE_GAMEMODE="false" \ -e ALLOW_NETHER="true" \ -e LEVEL_TYPE="minecraft:normal" \ -e GENERATE_STRUCTURES="true" \ -e ONLINE_MODE="true" \ -e ENFORCE_WHITELIST="false" \ -e ENFORCE_SECURE_PROFILE="true" \ -e ENABLE_RCON="false" \ -e ENABLE_QUERY="true" \ -e ENABLE_STATUS="true" \ -e ENABLE_COMMAND_BLOCK="false" \ -e VIEW_DISTANCE="10" \ -e SIMULATION_DISTANCE="10" \ -e MAX_TICK_TIME="60000" \ -e NETWORK_COMPRESSION_THRESHOLD="256" \ -e VOICE_CHAT_ENABLED="true" \ -e VOICE_MAX_DISTANCE="48" \ -e VOICE_WHISPER_DISTANCE="24" \ -e VOICE_ENABLE_GROUPS="true" \ -v /opt/gameserver:/opt/gameserver \ -w /opt/gameserver \ eclipse-temurin:21-jre-alpine \ java -Xmx -Xms -jar server.jar nogui
Alternative startup profiles:
- Aikar's Flags (Optimized) — Optimized JVM flags recommended by Aikar for Minecraft servers. Best for servers with 10+ players.
- ZGC Low Latency — Generational ZGC for ultra-low pause times. Best for competitive or latency-sensitive servers. Requires Java 21+.
GameCP lets you switch between these profiles with one click.
Or skip all of this
GameCP automates every step above: Docker, port forwarding, startup, and config. Install on your own PC and deploy a Minecraft - Java Edition (Fabric) server in under 5 minutes.
Deploy with GameCPMore Hosting Guides
Explore step-by-step setup guides for other popular games supported by GameCP.
Ready to Host Your Minecraft - Java Edition (Fabric) Server?
Install GameCP on your own computer and start hosting in minutes. Automatic port forwarding, zero config — your friends connect instantly.
No credit card required · Free tier available · Install local, scale later