[HELP] Failed to setup TCP connection Using CF Tunnels

I'm running a Minecraft server in my computer and try to public it's host subdomain by using CF tunnels to access from anywhere using TCP protocol. Because the server use TCP connection. Server port is 25565 . I have done these things: 1. Cloudflared is set-upped in my local device and working fine in other requests. (eg: https,http). 2. Server is running under 25565 port on my local device. 3. Created new public host under a subdomain including service type: TCP | 127.0.0.1:25565 . * I dont want to use my Public IP in this case. But still failed to live the server publicly using TCP! Am I making any mistake? Please let me know! Thanks!
3 Replies
Chaika
Chaika10mo ago
?tunnel-tcp
Flare
Flare10mo ago
Cloudflare Tunnels use Cloudflare's proxy, which only supports proxying HTTP Traffic. If you want to use non-http applications over your tunnel, Cloudflare has a few other options: For a few specific protocols such as SSH, RDP, and SMB, Cloudflare has guides for them here: https://developers.cloudflare.com/cloudflare-one/applications/non-http/ For Arbitrary TCP like Minecraft, MySQL, and any other tcp application, Cloudflare has a guide here: https://developers.cloudflare.com/cloudflare-one/applications/non-http/arbitrary-tcp/ For Arbitrary UDP like Minecraft Bedrock, SMTP, and any other udp application, you will need to use Private Networking with WARP: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/private-net/connect-private-networks/ Please note for all of these except SSH and VNC which can be browser-rendered, you will either need to use cloudflared (Cloudflare's tunnel daemon) on the client machine running in the background or Private Networking with WARP, and have WARP installed on the client machine logged into your Zero Trust Team.
Chaika
Chaika10mo ago
What do you mean
Cloudflared is set-upped in my local device and working fine in other requests. (eg: https,http).
You have it setup like in https://developers.cloudflare.com/cloudflare-one/applications/non-http/arbitrary-tcp/, using something like cloudflared tunnel --hostname minecraft.example.com --url tcp://127.0.0.1:7870, and then you connect in minecraft via 127.0.0.1:7870? That's the only way you can get minecraft to work, anyone who wants to connect would need to install either cloudflared and using that, or WARP with Private Networking