HomeJavaModsIntegrade Cloudflared Tunnel mod
Integrade Cloudflared Tunnel mod
ModsJava

Integrade Cloudflared Tunnel mod

by Nosferk · on Modrinth

⬇ Download on Modrinth
Integrade Cloudflared Tunnel mod — screenshot 1Integrade Cloudflared Tunnel mod — screenshot 2Integrade Cloudflared Tunnel mod — screenshot 3

Cloudflared Tunnel Mod


Table of Contents


What is the Cloudflared Tunnel Mod?

The Cloudflared Tunnel Mod is a Minecraft Fabric mod that integrates Cloudflare Tunnel (cloudflared) directly into your Minecraft client. It allows you to create tunnels to connect to Minecraft servers without needing port forwarding or dealing with dynamic IPs.

Where did the idea come from?

This solution was inspired by community discussions on how to use Cloudflare tunnels for gaming:

The mod automates all the manual steps discussed in these threads, making the solution accessible to all players.


How It Works

Technical Overview

  1. Automatic Initialization: When you launch Minecraft with the mod installed, it automatically:

    • Extracts the cloudflared.exe executable from the JAR to the ./data/ folder
    • Starts a Cloudflare tunnel using your configuration
    • Connects the tunnel to a specific local port
  2. Process Management: The mod manages the entire cloudflared process lifecycle:

    • Starts the process automatically
    • Monitors output and logs
    • Stops the process when needed
    • Reconnects automatically if the tunnel fails

Network Architecture

[Your Minecraft] ←→ [Local Tunnel] ←→ [Cloudflare Edge] ←→ [Internet] ←→ [Other Players]
     Local Port      cloudflared     Global Network         Public Access

Installation

Prerequisites

Installation Steps

  1. Download Required Tools:

  2. Download the Mod:

    • Place the .jar file in your mods/ folder

⚙️ Configuration

📁 Configuration File

The config/cloudflared-tunnel.properties file is created automatically:

# Use random port (recommended to avoid conflicts with other players)
useRandomPort=true

# Fixed port (if useRandomPort=false)
fixedPort=25565

# Tunnel hostname
hostname=play.exemple.com

# Automatically add to server list
autoAddToServerList=true

# Server name in the list
serverName=Nosferk

In-Menu Configuration

Access the configuration menu via the mod menu to adjust settings.


How to Use

Basic Usage

  1. Launch Minecraft with the mod installed
  2. Wait for Initialization: The tunnel will be created automatically
  3. Check Logs: Confirm that the tunnel has been successfully established

Monitoring

Reloading

If you need to change settings:

  1. Modify the configuration file
  2. Use the reload function in the mod’s GUI
  3. The tunnel will restart automatically

Requirements

System

Minecraft

Network


Troubleshooting

Common Issues

"cloudflared.exe not found"

"Failed to start tunnel"

"Cannot connect to server"

Diagnostics

  1. Check Logs: logs/latest.log
  2. Test Connectivity: Ping cloudflare.com
  3. Check Processes: Ensure cloudflared is running
  4. Test Locally: Try connecting on the local network

Getting Help


Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a branch for your feature
  3. Commit your changes
  4. Push the branch
  5. Open a Pull Request

Guidelines


License

This project is licensed under the Attribution-NonCommercial-NoDerivatives 4.0 International license.


Author

Nosferk


Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more