I made a simple flask application and want to host it on my local server for a demo. The app is accessible using my server’s public IP address. I set up a subdomain DNS record following the instruction here: Create subdomain records | Cloudflare DNS docs. Used an A record. However, the subdomain doesn’t seem to point to my server’s IP address. Keep getting connection time out error.
What steps have you taken to resolve the issue?
Changed the SSL certificate from FULL to FULL STRICT following a discussion here, but doesn’t seem to make any difference.
What feature, service or problem is this related to?
Try changing the DNS entry from proxied to DNS Only. If it still doesn’t work, then your web server isn’t responding to requests.
If it does work, then it’s possible you’re blocking requests from Cloudflare’s IP ranges.
Also, is your application listening for HTTPS connections on port 443, with a valid certificate? You have port 80 (plain HTTP) redirecting to HTTPS on port 443. If your server is expecting only insecure connections, you can enable the proxy but disable the redirect (Always Use HTTPS) and change your SSL/TLS setting to Off.