Setting Up a Cloudflare Tunnel for an Eaglercraft Server
Written by zumbiepig and SpeedSlicer
In this guide, we'll walk you through the steps to set up a Cloudflare Tunnel for your Eaglercraft server, which is running on ws://localhost:8081
.
Prerequisites
- An Eaglercraft server running on
ws://localhost:8081
- Access to the computer your Eaglercraft server is running on
- A domain already linked to Cloudflare
Step 1: Access Cloudflare Tunnels
- Go to the Dashboard and log in to your Cloudflare account.
- Navigate to the Zero Trust page using the navigation bar on the left.
- Sign up for Cloudflare Zero Trust with the Free Plan if you have not already.
- Once you are in the dashboard, navigate to Networks > Tunnels.
Step 2: Create a Tunnel
- Click on Create a tunnel, and select Cloudflared.
- Click Next.
- Enter a name for the tunnel.
- Follow the instructions provided on the site to install the tunnel.
You should do these instructions on the computer that your Eaglercraft server is running on.
Step 3: Configure Domain/Subdomain
- Select the domain or subdomain you want to use for your server.
- Select HTTP for the type.
- Enter
localhost:8081
(or whatever port your server is running on) as the URL.
Step 4: Activate Tunnel and Proxy
- Start your Eaglercraft server.
- In Eaglercraft, connect to the domain or subdomain you set up.
- You're all set! Players can now join your server using the domain that you linked your tunnel to.
Example: wss://example.com