Hello, I’ve been trying for several days to establish a tunnel with my Minecraft server (non-HTTP) to a subdomain. I’ve read the non-HTTP documentation and several forums, but I can’t get it to work. I think I’m forgetting something or doing something wrong. The server works fine locally.
Procedure:
Server:
- I create the tunnel using Cloudflare’s web interface (/networks/tunnels).
- I download Cloudflared.
- I establish the tunnel:
sudo cloudflared service install {token}
. - I add the DNS CNAME record:
minecraft.{mydomain}.com
pointing to{id_tunnel}.cfargotunnel.com
.
Output:
shell
Copiar código
2024-08-09T21:50:49Z INF Using SysV
2024-08-09T21:50:49Z INF Linux service for cloudflared installed successfully
Client (Windows desktop):
- I download Cloudflared.
- I run
cloudflared access tcp --hostname minecraft.{mydomain}.com --url localhost:25565
.
Output:
shell
Copiar código
2024-08-09T21:43:04Z INF Start Websocket listener host=localhost:25565
When I try to connect with the Minecraft client, it says “connection refused.”
I tried checking if there is any trace using the following command:
powershell
Copiar código
Test-NetConnection -ComputerName localhost -Port 25565 -InformationLevel Detailed
Warning:
shell
Copiar código
TCP connect to (::1 : 25565) failed
Cloudflared logs:
shell
Copiar código
2024-08-09T21:51:47Z ERR failed to connect to origin error="dial tcp: lookup fastminecraft.{mydomain}.com: getaddrinfow: The requested name is valid, but no data of the requested type was found." originURL=https://minecraft.{mydomain}.com
I can trace the domain, but I can’t connect to Minecraft. What might I be overlooking?