Need help with minecraft server setup
I have a domain, I'd like to know how to configure so that I can use that domain to connect to a minecraft server instead of using ip directy, so far my setup is as follows...
22 Replies
A record

points to localhost since i wanna tunnel it via cloudflared
SRV record, i saw from setup videos that people add this record

and a tunnel public hostname

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.
If you want to tunnel a Minecraft server, all the players will also need to install Cloudflared/WARP. Is that what you want?
what i want is for sub.domain.com to be used instead of ip
maybe u can help me reconfigure everything
Yes, do you want your players to need to install software or should they just be able to join?
just join
but i cant port forward tho
Then you can't use a tunnel. Use a DNS-Only A record with your IP.
ah, so should i just remove the public hostname in the tuinnel?
You can't host a public Minecraft server if you can't do port forwarding.
the top A record, is this correct?

ah ok, i was following chatgpt that i can use cloudflared to tunel a localhost minecraft server
i guess it mislead me
It works, but then every player also needs to install Cloudflared or they can't join.
what about ngrok, is it then same thing?
also i tunnel my website, and people can visit them without cloudflared installed?
Yes, it works for websites.
i see
Not for arbitrary tcp though.
gotcha
so let's say i have a port forwarded ip, only then i can use cloudflare
Yes, you need port forwarding to host a public Minecraft server with Cloudflare.