php
php
CDCloudflare Developers
Created by php on 5/2/2025 in #general-help
Unable to Connect to Minecraft Server via Cloudflare Tunnel (Other Services Working Fine)
Context: I'm getting into selfhosting and want to host a game server(Minecraft should take the port 25565 and need tcp traffic) through a cloudflared tunnel through my own domain. A connection from the outside does not appear possible, although I don't know its reason, in the following I will go through the steps I took, I would be very grateful for any tips or ideas. My steps so far (based on https://developers.cloudflare.com/cloudflare-one/applications/non-http/cloudflared-authentication/arbitrary-tcp/): 1.Bought a domain (gameserver.kyoto) 2.Created a cloudflare account and replaced the nameservers with the nameservers from Cloudflare 3.Downloaded the latest version of cloudflared on the host server (ubuntu 22.04) 4.Logged in, downloaded the credentials from cloudflare 5.Created a new tunnel "minecraft" 6.Created a config file like this
tunnel: 7c7af860-xxxx-xxxx-xxxx-7d235e1a5b4e credentials-file: /etc/cloudflared/7c7af860-xxxx-xxxx-xxxx-7d235e1a5b4e.json ingress: - hostname: ssh.gameserver.kyoto service: ssh://localhost:22 - hostname: minecraft.gameserver.kyoto service: tcp://localhost:25565 - hostname: grafana.gameserver.kyoto service: http://localhost:3000 - service: http_status:404
Started the tunnel -> I dont see any mention of "configuration updated" or smt like that, furthermore when I run "cloudflared tunnel info mc-tunnel" It does not say that it has a configuration. 9.Testing from within the local network but a different PC
PS C:\Users\php> Test-NetConnection -ComputerName minecraft.gameserver.kyoto-Port 25565 ComputerName : minecraft.gameserver.kyoto RemoteAddress : 172.67.211.11 RemotePort : 25565 InterfaceAlias : ethernet SourceAddress : 192.168.0.60 PingSucceeded : True PingReplyDetails (RTT) : 3 ms TcpTestSucceeded : False
10.I have launched a temporary game server but no incoming traffic can be detected. By connecting to the tunnel, I am able to use SSH and access the Grafana dashboard. However, only Minecraft returns an error: "Connection refused: no further information." I would be grateful for any help, Thank you.
32 replies