# Timeout when trying to connect to IMAP account

**URL:** <https://forum.xojo.com/t/timeout-when-trying-to-connect-to-imap-account/83895>\
**Category:** General\
**Created:** [January 13, 2025, 9:00am UTC](https://forum.xojo.com/t/timeout-when-trying-to-connect-to-imap-account/83895 "2025-01-13T09:00:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [January 13, 2025, 9:00am UTC](https://forum.xojo.com/t/timeout-when-trying-to-connect-to-imap-account/83895/1 "2025-01-13T09:00:19Z")

</div>

A user can’t connect to ANY of his IMAP accounts. He says that he doesn’t use LittleSnitch but this symptoms are the same. What else could cause this?

```
    hostname: imap.gmail.com
    port: 993
    socket2Connect:
      connect2:
        connectImplicitSsl:
          connectSocket_v2:
            connect_domain:
              ckDnsResolveDomainIPv4_n:
                num_app_defined_ns: 0
                revert_to_old_dns:
                  domain: imap.gmail.com
                  ck_getaddrinfo:
                    getAddressInfo:
                      hostOrIpAddr: imap.gmail.com
                    --getAddressInfo
                  --ck_getaddrinfo
                --revert_to_old_dns
              --ckDnsResolveDomainIPv4_n
              ipv4_address: 142.251.168.109
              timeout waiting for connect to complete;
              timeoutMs: 10000
              failedWaitToConnect: Socket operation timeout.
              Failed to make TCP connection before applications max wait time to connect.
              connectTimeoutMs: 10000
            --connect_domain
          --connectSocket_v2

```

---

<div class="post-metadata">

**Author:** ![Sascha\_S](https://forum.xojo.com/user_avatar/forum.xojo.com/sascha_s/32/22328_2.png) [@Sascha\_S](https://forum.xojo.com/u/Sascha_S)\
**Post date:** [January 13, 2025, 12:07pm UTC](https://forum.xojo.com/t/timeout-when-trying-to-connect-to-imap-account/83895/2 "2025-01-13T12:07:15Z")

</div>

> [@Beatrix\_Willius](#):
>
> `ipv4_address: 142.251.168.109`

Maybe it’s an IPv4/v6/(VPN Tunneling) thing?

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [January 13, 2025, 12:10pm UTC](https://forum.xojo.com/t/timeout-when-trying-to-connect-to-imap-account/83895/3 "2025-01-13T12:10:57Z")

</div>

> [@Sascha\_S](#):
>
> IPv4/v6/(VPN Tunneling)

Can you explain with more detail what you mean?

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [January 13, 2025, 12:13pm UTC](https://forum.xojo.com/t/timeout-when-trying-to-connect-to-imap-account/83895/4 "2025-01-13T12:13:22Z")

</div>

does his account works in thunderbird?

 ![grafik](https://forum.xojo.com/uploads/default/original/3X/3/2/3204d604aa40f91ecc66288c50f16712e15244db.png)  
 ![grafik](https://forum.xojo.com/uploads/default/original/3X/4/7/47388e53eca67d1111db592f60322a62af542fdd.png)

have he enabled imap there?  
my settings in gmail web front end.

 ![grafik](https://forum.xojo.com/uploads/default/original/3X/f/2/f24cdca0b0737eb3da2f51fdb88ea9cb3d969168.png)

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [January 13, 2025, 12:14pm UTC](https://forum.xojo.com/t/timeout-when-trying-to-connect-to-imap-account/83895/5 "2025-01-13T12:14:56Z")

</div>

> [@MarkusR](#):
>
> does his account works in thunderbird?

He said that his accounts worked until mid November. But perhaps he disabled the IMAP account by accident. Good idea!

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [January 13, 2025, 12:16pm UTC](https://forum.xojo.com/t/timeout-when-trying-to-connect-to-imap-account/83895/6 "2025-01-13T12:16:46Z")

</div>

with oauth2 there would pop up a google login where you allow external apps access.

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [January 13, 2025, 12:19pm UTC](https://forum.xojo.com/t/timeout-when-trying-to-connect-to-imap-account/83895/7 "2025-01-13T12:19:33Z")

</div>

> [@MarkusR](#):
>
> with oauth2 there would pop

OAuth is on my to-do list. I effing hate the stupid approval processes of Google, Microsoft and Apple.

---

<div class="post-metadata">

**Author:** ![Sascha\_S](https://forum.xojo.com/user_avatar/forum.xojo.com/sascha_s/32/22328_2.png) [@Sascha\_S](https://forum.xojo.com/u/Sascha_S)\
**Post date:** [January 13, 2025, 2:16pm UTC](https://forum.xojo.com/t/timeout-when-trying-to-connect-to-imap-account/83895/8 "2025-01-13T14:16:32Z")

</div>

> [@Beatrix\_Willius](#):
>
> Can you explain with more detail what you mean?

Not really, but searching for issues related to ckDnsResolveDomainIPv4\_n leading often to WAN connections w/o IPv4 support or tunneled VPN connections.
