Issues with setting up subdomain record

What is the name of the domain?

demo.cocofactory.xyz

What is the error number?

Error code 522

What is the error message?

Connection timed out

What is the issue you’re encountering

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?

DNS records

Screenshot of the error

I’ve done a check using this Cloudflare tool: https://cf.sjr.org.uk/tools/check?1ec7308ce134471abad1e7e8bff10858

Don’t know whether it’s helpful to find the issues.

Try changing the DNS entry from :orange: proxied to :grey: 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.

2 Likes

Thank you @i40west for helping with this! The 443 redirect works.

Really appreciate your help!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.