# Failed to connect to the remote server: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

**URL:** <https://forum.collaboraonline.com/t/failed-to-connect-to-the-remote-server-curl-error-28-operation-timed-out-after-5000-milliseconds-with-0-bytes-received-see-https-curl-haxx-se-libcurl-c-libcurl-errors-html/3582>\
**Category:** Installation & Configuration\
**Created:** [April 8, 2025, 4:26pm UTC](https://forum.collaboraonline.com/t/failed-to-connect-to-the-remote-server-curl-error-28-operation-timed-out-after-5000-milliseconds-with-0-bytes-received-see-https-curl-haxx-se-libcurl-c-libcurl-errors-html/3582 "2025-04-08T16:26:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbitterfield](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/cbitterfield/32/1618_2.png) [@cbitterfield](https://forum.collaboraonline.com/u/cbitterfield)\
**Post date:** [April 8, 2025, 4:26pm UTC](https://forum.collaboraonline.com/t/failed-to-connect-to-the-remote-server-curl-error-28-operation-timed-out-after-5000-milliseconds-with-0-bytes-received-see-https-curl-haxx-se-libcurl-c-libcurl-errors-html/3582/1 "2025-04-08T16:26:02Z")

</div>

```auto
Failed to connect to the remote server: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://my.domain.com/apps/richdocumentscode/proxy.php?req=/hosting/discovery

```

I enabled exec, and exec\_shell in PHP to get this far. It appears to be a configuration issue. I increased script timeout to 1400 seconds in PHP but that does not seem to help. I tried to enable debugging in proxy.php but that doesn’t have an error.

This is on a hosting provider so it could be a PHP configuration or NextCloud configuration.

I would appreciate some help troubleshooting this. I did check the fontconfig and GLIBC libraries and everything looks correct.

Nextcloud Hub 10 (31.0.2)

## Collabora Online - Built-in CODE Server Version 24.4.1302, APACHE-licensed

x86\_64 GNU/Linux

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [April 10, 2025, 9:36am UTC](https://forum.collaboraonline.com/t/failed-to-connect-to-the-remote-server-curl-error-28-operation-timed-out-after-5000-milliseconds-with-0-bytes-received-see-https-curl-haxx-se-libcurl-c-libcurl-errors-html/3582/2 "2025-04-10T09:36:18Z")

</div>

> [@cbitterfield](#):
>
> ```auto
> Failed to connect to the remote server: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://my.domain.com/apps/richdocumentscode/proxy.php?req=/hosting/discovery
> 
> ```

hii @cbitterfield welcome to collabora online forum

**Check if CODE server is reachable**

From a shell on the server, try:

```auto
curl -v https://my.domain.com/apps/richdocumentscode/proxy.php?req=/hosting/discovery

```

If that times out **from the command line** , it’s likely a DNS or firewall issue. If it works **from CLI but not from PHP** , it’s a PHP networking/config issue.

**PHP cURL settings**

PHP may have its own limitations, especially with `open_basedir`, `safe_mode`, or DNS resolution. Check:

- `php.ini` or `.user.ini` settings:

```auto
allow_url_fopen = On
curl.cainfo = /path/to/cacert.pem ; (ensure it exists and is valid)

```

- Make sure **DNS works in PHP**. Create a small test PHP script:

```auto
<?php
var_dump(gethostbyname('my.domain.com'));
?>

```

If that fails, DNS is broken for PHP.

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [April 16, 2025, 10:21am UTC](https://forum.collaboraonline.com/t/failed-to-connect-to-the-remote-server-curl-error-28-operation-timed-out-after-5000-milliseconds-with-0-bytes-received-see-https-curl-haxx-se-libcurl-c-libcurl-errors-html/3582/3 "2025-04-16T10:21:59Z")

</div>

Closed on April 16, 2025, 10:21am UTC


