Community Tip - Fixing Error 522: Connection timed out

Try the suggestions in this Community Tip to help you fix Error 522 “ERR CONNECTION TIMED OUT” in Google Chrome or “The connection has timed out” in Firefox.

A 522 error happens when a TCP connection to the web server could not be established. This typically happens when Cloudflare requests to the origin (your webserver) get blocked. When this happens, you’ll see “ERR_CONNECTION_TIMED_OUT”.

Quick Fix Ideas

  1. Make sure that you’re not blocking Cloudflare IPs in .htaccess, iptables, or your firewall.

  2. Make sure your hosting provider isn’t rate limiting or blocking IP requests from the Cloudflare IPs and ask them to whitelist the IP addresses here: 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 whitelisting the Cloudflare IP ranges to block this traffic as it may see it as excessive or malicious

  3. If you are seeing 522 errors in certain locations only, it means you likely forgot to whitelist one of our ranges that corresponds to these locations, so double check to ensure all our IPs are whitelisted appropriately.

  4. Please reach out to your hosting provider or site administrator to confirm if there are any load problems on your infrastructure.

  5. It may be there was a temporary problem on the path or at your origin preventing connections from completing. If they are no longer happening, here are two actions to take: a) Check with your hosting provider to see if they had any issues with packet loss or if your server was under load at the time the errors happened and b) Have your hosting provider or server administrator confirm that all Cloudflare IP ranges are fully whitelisted from any rate limits.

  6. If your firewall is configured to DROP packets rather than refuse connections, it will cause a 521; meaning an incorrectly configured firewall can actually masquerade as a connection timeout 522 error.

Lite Reading

Background Resources
Help Center

Research The Issue

If You Need More Help
This community of other Cloudflare users may be able to assist you, if not, login to Cloudflare and then contact Cloudflare Support. When you contact support, make sure to include as much of this information as possible: time stamped log files from your origin server, RayID, domain name, error messages, screen shots, and/or HAR file(s).

Expert Comments Appreciated
This Community Tip will remain open for input from Community experts and those familiar with this issue. We really appreciate comments that start with words like: “The three things I always try”, or “Do this first” or “In my experience”.

This is a Cloudflare Community Tip, to review past tips click here.

Çevirmek…traduzir…翻译…traducir…Traduire…Übersetzen…:greyg: Translate this Tip

FXCTCT 101119

1 Like
522 error but my server is showing no requests... HELP
522 errors on certain files
Again And Again The Same Problem
Network DNS and A
When using CDN, sites become very very slow. even sometimes return 522 error
Status code 522
Cloudflare is giving 523 Error! Really!
Site was working secured now cant access it
Problem with the SSL installation
Problem with the SSL installation
Facing SSL certificate problem and Error 522
Error 522
Cant Log-in to my site
Another outage today (4th in 20 days)
Error 522 cant fix
Lost HTTPS due to new IP address for my website. How to get a new certificate?
Fail July 2 - not all sites work
An issue with A record in the DNS config
522 error in my site
SSl error 522,only los angeles
Unable to reach two websites or their respective email servers
522 error for site - help!
Cloudflare SSL Error
Can't open my site without WWW
522 Connection Timeout Error
522: Connection Timed Out
Error 522 in Toronto area only
Error 522 on a handful of files
Error 522 occurs although the settings are all correct.
Error 522 from EU locations only
522 Error time out
All websites in The Netherlands getting 520 & 522 error
How do I add another domain to my account?
Caching and Always Online Issues
522 error only in china
Issue to connect CF to AWS Load Balancer Error 522
Not quite sure what is happening
Help! Error 522, Connection timed out
Para o suporte (erro 522)
A lot of 522 errors on back-end
Can't Install Wordpress update
Error 522. Showing its currently offline
SSL subdomain pointing to another server
Error 522 - I cannot see my website
Error 522 issues
Error 522 - Can't login in from backend either
Community Tip - All Published Tips
Error 522 , 2019.04.30 NOT Working - please help
Consta que já tenho email adicionado, porém não consigo adicionar meu site no cloudflare, por favor preciso de ajuda. Após entrar com o meu email aparece está informação o nome do site " e pending Nameserver Update
Js and Css doesn't work
WordPress Featured Image is Getting Crashed
Suretrader 522 errors online brokerage
Domain responding with 522 error
Domain responding with 522 error
Still Blog Not able to view the blog
Still Blog Not able to view the blog
Help required again
Page currently offline error
My website is showing Not Secure in browser
Error 522 Connection timed out host-domain
Wordpress plugins dont work (functionality not showing) when cloudflare cache is activated but works fine when using a vpn!
I m getting error 522
Only a few files gives 522 Errors, from only some locations
Want subdomain pointing towards external IP
Website images showing in Europe but not in the US
Godaddy website goes down constantly with Cloudflare SSL
Site too slow or Error 522
Cloudflare is not pointing to my host in my websites!
Error 522 Issue on
All Domains Down
What's The Best Method To Get Help With Technical Support On Cloudflare?
I got Error 522: Connection timed out on some resources
Error 522 Connection Timeout CloudFlare
Error 522 Connection Timeout CloudFlare
Error 522 - Connection Timed Out
522 Error Report
Error 522 connection time out . server working fine and IP not blocked :(
I'm getting this error
Getting 522 error when attempting to visit my website
Error 522 Ray ID: 4a3eb2d10adb3fd7 • 2019-02-04 17:01:49 UTC Connection timed out
Error 522 Connection Timeout
Ошибки сайта
Connection Time Out 522 and 527 Errors!
For my another site
JS and CSS shows error 522 when Caching is on
Cant connect to my domain
My site bug error 552
Problems with some files 522 Error
Error 522 on specific CDN
Error 522 Unable to see one website only when connecting through specific ISP
Client met Error 522
Не работает сайт!
Help! I whitelisted all CF ips, still not able to pass error 522
Changing hosting IP address gives 522 error connection timeout
How can I configure ssl on odoo website? Is for free or I have to contract something?
Some Error 522
The website is not opening when "Always Use HTTPS" enabled
Website is not loading when cloudflare name server is used
Error 522 on Wordpress Multisite
The Site is very slow after installing SSL certificate with Full (strict) mode
Https:// only works sometimes, usually fails but other URLs with http & https loads fine
Cloudflare can't connect to my tunnelbroker IPv6 server
522 error every 2 clicks
Error 522: Connection
Error 522, Connection timed out
Error 522 on ec2 amazon aws
Does Warp Timeout cause 522
Error 522, problem caused by cloudflare
SSL Encryption Mode: Error 522 on subdomains or ERR_TOO_MANY_REDIRECTS on main domain
Error 1003
Help me pls, error 522
Check my site
Unexpected 522 error
Failed to load resource: the server responded with a status of 522 ()
Error 522 please help
Slow Initial Load
Error 522 connection timed out on some sites
Error 522 on website -
How set subdomain to point to different IP address from main domain
Domain pointing error 522
I am not able to login to my cpanel account
Why I am getting "This site can’t be reached" in my website
WAAA Another Problem?!
Cloudflare blocks Gutenberg editor and slows down website icons
522 Error, why this error?
Intermittent Error 522 in the same country
Retry for a live version while using Divi Builder
Error 522 from Europe, but works in Asia and America
CloudFlare reporting 522 from various regions
Problema em carregar alguns arquivo e imagens
Problem with https without www