     [Answers](https://scrapfly.io/blog)   /  [curl](https://scrapfly.io/blog/tag/curl)   /  [What is The cURL (28) Error, Couldn't connect to server?](https://scrapfly.io/blog/answers/what-is-the-curl-28-error)   # What is The cURL (28) Error, Couldn't connect to server?

 by [Mazen Ramadan](https://scrapfly.io/blog/author/mazen) Apr 18, 2026 1 min read [\#curl](https://scrapfly.io/blog/tag/curl) [\#proxies](https://scrapfly.io/blog/tag/proxies) 

 [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fwhat-is-the-curl-28-error "Share on LinkedIn")    

 

 

The cURL (28) indicates a proxy connection error. The full error traceback looks like the following:

bash```bash
curl: (28) Failed to connect to XXXX port XXXX after 21057 ms: Couldn't connect to server
```



This error arises when the cURL request can't connect to the proxy server, either because the server isn't responding or the proxy details are invalid. To solve the cURL (28) error, double-check your proxy IP and port or use another proxy, as it can be down or unresponsive.

For further details on proxies, including their types and best practices when choosing a proxy, refer to our introduction guide.

[The Complete Guide To Using Proxies For Web ScrapingIntroduction to proxy usage in web scraping. What types of proxies are there? How to evaluate proxy providers and avoid common issues.](https://scrapfly.io/blog/posts/introduction-to-proxies-in-web-scraping)



 

    



Scale Your Web Scraping

Anti-bot bypass, browser rendering, and rotating proxies, all in one API. Start with 1,000 free credits.

  No credit card required  1,000 free API credits  Anti-bot bypass included 

 [Start Free](https://scrapfly.io/register) [View Docs](https://scrapfly.io/docs/onboarding) 

 Not ready? Get our newsletter instead. 

 

## Explore this Article with AI

 [ ChatGPT ](https://chat.openai.com/?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fwhat-is-the-curl-28-error) [ Gemini ](https://www.google.com/search?udm=50&aep=11&q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fwhat-is-the-curl-28-error) [ Grok ](https://x.com/i/grok?text=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fwhat-is-the-curl-28-error) [ Perplexity ](https://www.perplexity.ai/search/new?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fwhat-is-the-curl-28-error) [ Claude ](https://claude.ai/new?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fwhat-is-the-curl-28-error) 



 ## Related Articles

 [  

 curl 

### How to Use cURL GET Requests

Here's everything you need to know about cURL GET requests and some common pitfalls you should avoid.

 

 ](https://scrapfly.io/blog/posts/how-to-use-curl-get-requests) [  

 http tools 

### How to Use cURL For Web Scraping

In this article, we'll go over a step-by-step guide on sending and configuring HTTP requests with cURL. We'll also explo...

 

 ](https://scrapfly.io/blog/posts/how-to-use-curl-for-web-scraping) [  

 http 

### Guide to SSL Errors: What do they mean and how to fix them

Overview of SSL errors - what are they, what are common issues and how to resolve them.

 

 ](https://scrapfly.io/blog/posts/guide-to-ssl-error-meaning-and-fixes) 

  ## Related Questions

- [ Q How to Solve the cURL (60) Error When Using Proxy? ](https://scrapfly.io/blog/answers/how-to-solve-the-curl-60-error-when-proxy)
- [ Q How To Use Proxy With cURL? ](https://scrapfly.io/blog/answers/how-to-use-proxy-with-curl)
- [ Q How To Send Multiple cURL Requests in Parallel? ](https://scrapfly.io/blog/answers/how-to-send-multiple-curl-requests-in-parallel)
- [ Q Web scraping - what is HTTP 499 status code? ](https://scrapfly.io/blog/answers/499-status-code)
 
  



   



 Premium rotating proxies for scraping, **1,000 free credits** [Start Free](https://scrapfly.io/register)