So I’m on my computer and when I go to my domain it says 502 Bad Gateway. When I move to my phone with WiFi on, it says 502 Bad Gateway but when I turn WiFi off and use data I get 522 Connection timeout. But when I go to the IP, it gives me the website. Why is this happening?
Those all sounds like your server just isn’t responding to Cloudflare. Going direct to the IP address is implies there’s something wrong with your Clouflare setup. I’d start by looking at your DNS entries at Cloudflare to make sure you have the correct IP address and it’s set to
What SSL settings are you using (if any)?