• Hi!
    i configured DAVdroid with a ddns service and portforwarding. as 443 is already in use i configured port 1177 > 443. DAVDroid won’t even try to connect @ the specified port: http://domain.org:1177/remote.php/carddav/ - i only get i/o error: failed to connect to domain.org/[ip-adress] (port 443)
    why can’t i use a specific port?

  • developer

    Can’t reproduce this. Connecting to other port works there. Please tell us your DAVdroid version and the specific URL you want to connec to. “Failed to connect” sounds is not “Connection refused”, so it sounds like you’re connecting with HTTP to an HTTPS port or something like that.

  • Hi! i’m on DAVdroid 0.6.4
    url is https://4684068.no-ip.org:1177

  • developer

    What is your error message? I get “Cannot verify host name”, which is the the correct message (see here).

  • Hi!
    That’s because you have to import the certificate first (cadroid?). after that i get this:
    “I/O error: Connect to 4684068.no-ip.org:443 […] failed: failed to connect to 4684068.no-ip.org/ipadress (port 443): connect failed: EHOSTUNREACH (no route to host)”
    seems that the app would ignore the specified port in “root url” = https://4684068.no-ip.org:1177

  • developer

    It’s a well-known path problem on your server: https://4684068.no-ip.org:1177/.well-known/caldav redirects to https://4684068.no-ip.org/remote.php/carddav/ (without port). So DAVdroid tries to connect to https://4684068.no-ip.org/remote.php/carddav/ (without port) and fails with “EHOSTUNREACH” which it shows to you.

    $ curl -kvX PROPFIND https://4684068.no-ip.org:1177/.well-known/carddav/
    * Adding handle: conn: 0xc48a20
    * Adding handle: send: 0
    * Adding handle: recv: 0
    * Curl_addHandleToPipeline: length: 1
    * - Conn 0 (0xc48a20) send_pipe: 1, recv_pipe: 0
    * About to connect() to 4684068.no-ip.org port 1177 (#0)
    *   Trying
    * Connected to 4684068.no-ip.org ( port 1177 (#0)
    * Initializing NSS with certpath: sql:/etc/pki/nssdb
    * skipping SSL peer certificate verification
    * SSL connection using TLS_DHE_RSA_WITH_AES_128_CBC_SHA
    * Server certificate:
    * 	subject: E=me@my.org,CN=4684068.no-ip.org,OU=Bo,O=Dafuq Ltd,L=Caudum,ST=Slol,C=AT
    * 	start date: Nov 02 14:42:26 2014 GMT
    * 	expire date: Nov 01 14:42:26 2016 GMT
    * 	common name: 4684068.no-ip.org
    * 	issuer: E=me@my.org,CN=4684068.no-ip.org,OU=Bo,O=Dafuq Ltd,L=Caudum,ST=Slol,C=AT
    > PROPFIND /.well-known/carddav/ HTTP/1.1
    > User-Agent: curl/7.32.0
    > Host: 4684068.no-ip.org:1177
    > Accept: */*
    < HTTP/1.1 302 Moved Temporarily
    * Server nginx/1.2.1 is not blacklisted
    < Server: nginx/1.2.1
    < Date: Sun, 02 Nov 2014 17:07:02 GMT
    < Content-Type: text/html
    < Content-Length: 160
    < Location: https://4684068.no-ip.org/remote.php/carddav/
    < Connection: keep-alive
    <head><title>302 Found</title></head>
    <body bgcolor="white">
    <center><h1>302 Found</h1></center>
    * Connection #0 to host 4684068.no-ip.org left intact

  • too bad! and there’s no way to fix this? sorry for the trouble!

  • developer

    ? Just fix the redirection so that it points to the correct Location, i.e. with the port.

    I’m closing this because it’s no issue of DAVdroid - it’s an issue of your CalDAV server configuration.

    But please feel free to post here nevertheless.

Similar topics

  • 9
  • 2
  • 8