How to Fix the cURL Error 28: Connection Timed Out?

It could be caused due to a faulty DNS server

Reading time icon 4 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

Key notes

  • To fix the cURL error 28: Connection Timed Out, disable all WordPress plugins, disable its firewall, & check DNS settings or SSL settings.
  • Continue reading to learn the detailed steps for each method! 
How to Fix the cURL Error 28: Connection Timed Out?

Though WordPress is a reliable Content Management System, sometimes, it can throw you unexpected errors like cURL error 28 to disrupt your workflow.

In this guide, we will discuss probable causes and offer recommended solutions by WR experts to resolve the issue quickly.

What is the cURL error 28 in WordPress?

cURL (Client URL) handles API requests that enable your site to access & transmit data to its server and corresponding database; if the process takes time, you might see this error. The main reasons are:

  • WordPress firewall interference
  • Faulty DNS server or WordPress plugin.
  • The hosting provider has put a low timeout limit on your server.

How can I fix the cURL error 28?

Before proceeding to the advanced fixes to resolve the cURL error 28, here are a few preliminary checks you should do:

  • Ensure your hosting server uses the latest cURL library, PHP, and OpenSSL.
  • Try using a different browser.

1. Disable the WordPress Firewall

If you use a WordPress firewall or any other security plugin, deactivate it temporarily. Follow these steps to do so:

  1. Login to your WordPress admin page.Deactivate the plugin
  2. Go to Plugins, locate the firewall or security plugin, and click Deactivate.

Next, check the WordPress health report page to see if the issue persists. If it has fixed the issue, check your WordPress firewall to understand what API requests have been blocked.

2. Deactivate all the WordPress plugins

  1. Login to your WordPress admin page.
  2. Go to Plugins, then click the Installed Plugins option.
  3. Place a checkmark next to Plugin to select all the Plugins.Deactivate Plugins at once -cURL Error 28
  4. Now select Deactivate from the drop-down menu.

3. Change the DNS server

  1. Press Windows + R to open the Run window.NCPA run command -cURL error code 28
  2. Type ncpa.cpl and click OK to open the Network Connections.
  3. Right-click the active connection and click Properties.Network Connection properties
  4. From This connection uses the following items box, select Internet Protocol Version 4 (TCP/IPv4), then choose Properties.Internet Protocol Version 4(TCPIPv4) Properties
  5. Select the radio button next to Use the following DNS server addresses.
  6. For the Preferred DNS server, type 8.8.8.8 and for the Alternate DNS server, type 8.8.4.4.DNS server
  7. Click OK, then OK to save the changes.

Changing the DNS server to a public DNS can help you fix the This site can’t be reached issue; read this to learn more about it.

4. Clear the browser cache

  1. Open the preferred browser; here, we are using Google Chrome to demonstrate the steps.
  2. Click the three dots icon and select Settings.Settings CHrome -cURL error code 28
  3. Go to Privacy & security, then select Clear browsing data.Clear browsing data
  4. For Time range, select All time from the drop-down list, then place a checkmark next to Cookies and other site data, and Cache images and files.Settings4 - Clear data
  5. Click Clear data.

5. Check the SSL configuration

  1. Go to Qualys SSL Labs test.chrome_SSL Server Test - cURL error code 28
  2. Next, insert your URL page and click Submit.

The tool will run a few tests and show you if there are any misconfigurations in the SSL installation. You need to reinstall the SSL and get help from your SSL vendor.

Reinstalling the SSL certificate can also help you fix the security issues on your WordPress websites; read this to learn the other solutions.

6. Check your server limits and cURL version

  1. On the Dashboard page, select Tools.Site Health, then Info -cURL error code 28
  2. Click Site Health, then Info.
  3. Next, select Server to check the limits.

In case nothing worked for you, you need to contact your hosting company and explain the issue & fixes you tried for further help.

To conclude, to fix the cURL error 28, you need to disable the WordPress Firewall temporarily and check what API requests are blocked.

You can also try clearing the browser cache, changing the DNS server to a public one and testing the server limits to eliminate the problem.

For other common WordPress hosting issues, like the White Screen of Death error, read this guide to learn more.

If you have questions or suggestions about the subject, don’t hesitate to mention them in the comments section below.

More about the topics: WordPress

User forum

0 messages