currently I connect my HTTP site (game) to my game server via IP
game server is hosted on different IP than site
for this very reason in point (2.) the Cloudflare SSL for game wont work. it will show CERT Invalid Name ERR if I connect via IP to my game. If I connect via my domain the problem is gone. But the domain doesnt point to my game server.
I was thinking of creating a subdirectory like https://mydomain.com/subdirectory that would redirect to my game server IP. I think i need reverse proxy
Is it possible to achieve this all with Cloudflare?
Hi, I couldn’t fully understand the issue but perhaps you could create a sub-domain pointing to your game server?
Maybe you are getting a certificate error when accessing straight from the IP because you have a certificate configured for a specific domain but is accessing it through the IP, thus the Cert invalid error.
yeah the thing is I dont know why but when I create record A in Cloudflare and point it to my computer - players cant connect to my game server via that domain. do you have idea why?
I mean it connects to WEBSITE correctly but not my game. I host site on WAMP and indeed domain on Cloudflare pointed to it successfuly from external IPs.
But for some reason it doesnt work for game. a service like duckdns.org worked for example as in the subdomain they gave me - i gave that to players and they connected to my game via that and it worked.