522 error - trying to host on android phone termux nginx mobile connection with ipv6

Kindly, may you reply with your domain name?

Even better, can you reply here with the output result which you get when you open the next URL in your Web browser for yourdomain (replace yourdomain.com with your actual domain name):

1st with :grey: and 2nd using :orange: cloud (should be different)

Kindly, read more about why Flexible is not a great and recommend option here below:

Nevertheless, that would mean your host/origin is obviously working with HTTP (for example port 80 or some other as listed on the link here: https://support.cloudflare.com/hc/en-us/articles/200169156-Identifying-network-ports-compatible-with-Cloudflare-s-proxy).

Okay, meaning :orange: would get you what you want, but when you use :orange: you got 522 error?
Who is your hosting provider?
Is Cloudflare allowed to connect to your host/origin? (see the Cloudflare IP list and how to allow them).

  • Make sure that you’re not blocking Cloudflare IPs in .htaccess, iptables, or your firewall.
  • Make sure your hosting provider isn’t rate limiting or blocking IP requests from the Cloudflare IPs and ask them to allowlist the IP addresses here: https://www.cloudflare.com/ips . If the IPs that fail are consistent each time, that indicates some of the IPs in Cloudflare’s IP ranges are either being rate-limited or blocked by a network device at your hosting provider. Because Cloudflare operates as a reverse proxy the IP address your server will see is one of a limited number of Cloudflare IPs. In that sense, many actual visitors may all come from the same IP address, which can cause firewalls or security software that is not appropriately allowlisting the Cloudflare IP ranges to block this traffic as it may see it as excessive or malicious
  • If you are seeing 522 errors in certain locations only , it means you likely forgot to allowlist one of our ranges that corresponds to these locations, so double check to ensure all our IPs are allowlisted appropriately.
  • Please reach out to your hosting provider or site administrator to confirm if there are any load problems on your infrastructure.

If it still fails, at least you can reach Cloudflare Customer Support, you would login to your Cloudflare account and then contact Cloudflare Support.