Server started out working with the subdomain, but then stopped.

Sorry, i'm learning as i go with server hosting, but i have a home server and a domain. I host a minecraft server for my friends, and i want them to be able to use like a word adress (minecraft.mydomain.uk) and not just my ip adress (static). It starts out working, however soon after stops, and i can only connect via the ip adress plus the port, or the domain plus the port. I have an A record set up in the cloudflare thing, and an SRV record which i think is correct as it worked fine before (_minecraft._tcp.minecraft). any help is appreciated, thanks
33 Replies
Chaika
Chaika6mo ago
what's the srv record look like?
Чийзбургер
like this
Chaika
Chaika6mo ago
unproxy minecraft.dtms.uk
Чийзбургер
so its dns only?
Chaika
Chaika6mo ago
Should be "DNS-only", not "Proxied"
Чийзбургер
ah aight
Chaika
Chaika6mo ago
Yep Can't proxy minecraft, http only
Чийзбургер
and it worked can you explain why rq im sorry ty also
Chaika
Chaika6mo ago
Sure. Cloudflare's Normal Proxy uses a pool of IP Addresses, shared among a ton of sites. How do you know which connection each one is for? A Basic connection is a tuple like this (src ip, src port, dst ip, dst port) src side is all up to the user, dst side is the only identifying side. The reason how Cloudflare's Proxy works with HTTP is because the HTTP Protocol exposes mechanisms (ServerName Identifider in the TLS side, and HTTP Host on the HTTP side, which are just your site hostname like dtms.uk or minecraft.dtms.uk) for identifying what website each request is for. So it can just handle the http connection because it understands the protocol and resolves who it goes to after. For Minecraft, Cloudflare doesn't understand the minecraft protocol and there's no nice identifier like ServerName/Host header either the protocol has. They'd have to assign each user a unique IP to understand which site it was for, which they do have a service for called Cloudflare Spectrum, it's just crazy expensive at $1/gb used
Чийзбургер
ah right, a little more understood thanks sm! mans better than any tech support centre
Upioti
Upioti5mo ago
Actually there is an identifier on the connection handshake the "hostname" field is sent Thats how basically every minecraft DDoS protection provider functions You can have a single ip and 25565 port but forward to different backends by the hostname
Chaika
Chaika5mo ago
oh is there? That's cool, still unlikely CF would ever support that and support proxying Minecraft that way, maybe one day though I thought they'd just use a ton of IPs
Upioti
Upioti5mo ago
Nono
Upioti
Upioti5mo ago
No description
Upioti
Upioti5mo ago
They do have to for bedrock tho since raknet only sends hostname on connection and not ping so server status would get messed up And i really doubt cloudflare would support minecraft at least for free
Chaika
Chaika5mo ago
I mean they do via Spectrum it's just $1/gb lol
Upioti
Upioti5mo ago
spectrum kinda does with the "minecraft" protocol but it doesnt really work cuz no Proxyprotocol Yeah but thats universal tcp not minecraft-specific most minecraft services also include L7 for minecraft attacks (Status floods, Handshake floods, Bots, etc)
Chaika
Chaika5mo ago
I thought it's meant to be a proper path.net like packet filter, not handling those type of attacks though yea
Upioti
Upioti5mo ago
Idk, i havent tried much the minecraft field on protocol they should add proxyprotocol to it so it could be useful im not sure if its actually handshake validation and not just pre-configured variables
Chaika
Chaika5mo ago
even on Enterprise if you pick Minecraft you don't have the proxy protocol options
Upioti
Upioti5mo ago
Yes i know Also path's filter is kind of a joke they dont do full handshake verification its only "oh this first packet looks like a minecraft packet... lets whitelist the entire connection"
Chaika
Chaika5mo ago
it might just be a preset to allow non-ent people to use it and not a proper filter, there's not much info on it out there
Upioti
Upioti5mo ago
yeah i think its this Wait actually lemme try it
Upioti
Upioti5mo ago
Just a preset
No description
Chaika
Chaika5mo ago
rip, well thanks for testing, now we know
Upioti
Upioti5mo ago
Why do they make it use ipv6 tho i dont think minecraft's network stack can even connect to v6 addresses Do you think the SSH/RDP "filters" are also like that? I mean i know HTTP(S) is indeed L7 (basically running cf dns but on whatever edge/backend port u want) so idk
Chaika
Chaika5mo ago
likely because they're also items that lower plans can pick https is special because it's just the normal cdn
Upioti
Upioti5mo ago
I dont think RDP is supported for lower plans
Chaika
Chaika5mo ago
Cloudflare Docs
Protocols per plan · Cloudflare Spectrum docs
On this table, you have information about which protocols are available per plan.
Upioti
Upioti5mo ago
yeah js looked so they js presets im not about to learn SSH/RDP protocol to test it out but assuming minecraft its a preset lets say they all are
Chaika
Chaika5mo ago
Minecraft was the one I had the most hope for because they have/had MC Hosts like Hypixel using Spectrum/mt at one point, and they advertised it specifically
Upioti
Upioti5mo ago
Yeah same Hypixel still uses both tho they mainly use MT and switch to spectrum when under attack but the spectrum ip is still public i use it to get better ping lmao
Want results from more Discord servers?
Add your server