I read an amazing tutorial on how to setup teamspeak with cloudflare: Teamspeak Setup
However there is 1 flaw. The tutorial says you have to use a subdomain in order for it to work. I do not want to use a subdomain for my teamspeak server. I want to use my regular domain and forward it to port 9987. How would this be configured on cloudflare without using a subdomain? I know it works because I have seen teamspeak servers use cloudflare and they do not have subdomain.
Haha, I had never actually tried SRV record for the domain to be honest. But I tried it now. I set the same SRV record for the domain as I did for the subdomain. And it actually worked!
Name of the SRV record: mydomainname
I had just assumed that it did not work because the tutorial said you have to use subdomain.
Now there is 1 flaw that I actually think can not be solved. As the tutorial points out, when a visitor connects to your server they can see the teamspeak servers origin IP adress. This is because traffic is not proxied through cloudflare, only the dns record is on cloudflare.
I tried proxying the traffic through cloudflare but I do not think this is possible. Cloudflare say they only proxy http traffic. The only solution I see so far is Enterprise Clouflare spectrum…