help with cs2 server
I opened some ports for a cs2 server and then made an A record to my ip without a proxy, when I try to connect to the server through my public ip it works, but when I try through the domain it doesn't
the domain also works on port 80 which I also have open
21 Replies
You can't use Cloudflare's proxy with CS2. You'll need to turn off the proxy (the little orange cloud should be gray instead) but keep in mind that will expose your server's IP to anyone who wants to know it.
I turned it off as I said in the post
Can you give the domain? Hard to troubleshoot further without checking the record.
yoavco.com
the ports for cs2 are 27015 and 27016
mainly just 27015 tho
Is your IP 77.126.11.187? If so then the record is working - any reason for not being able to connect wouldn't be related to Cloudflare.
that is my public ip yes
that is very weird tho, in-game I can connect using the public ip but not the domain
maybe something with how the game gets the IP?
have you tried from an external network? Hairpinning and such can make testing from internally be weird
oh I'll try
I see 80 open but nothing on the other two
PORT STATE SERVICE 80/tcp open http 27015/tcp closed unknown 27016/tcp closed unknownand also external source query doesn't work
try on my public ip
i get this same result on 77.126.11.187
that is very weird
hosting on your personal internet connection is a bad idea for a million reasons and silliness with NAT/CGNAT/Port Forwarding is one of them
I am not behind a CGNAT and I did set it to forward the ports on my router
I specifically moved to an ISP which doesn't use CGNAT
and port forwarding is still iffy
did you do both tcp/udp for 27015?
ye
yeah if i try to connect to my public ip from outside it doesnt work
only from inside
the ports should appear open now
ok I managed to make myself able to connect through the public IP from outisde
yea that looks better and can be queried via hostname/port: https://sourcequery.yepoleb.at/query?server=yoavco.com%3A27015
btw thanks for everyone here
is there any way to make it work with a proxy? (preferably without having to pay money)
With normal proxy? Only Spectrum Enterprise which is $$$
There's Zero Trust which you could use for free up to 50 users but they'd have to install and run cloudflared or warp to be able to connect, so only really works for private servers
at this point aws proxy would be cheaper no?
and zero trust is not really for my usecase
no clue what their pricing is but if it's not locked behind a contract with a minimum it's probably way cheaper to start with but probably more expensive for lots of bandwidth. AWS gets you on bandwidth, and probably DDoS protection is an addon