Https specific port

  • 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: - i only get i/o error: failed to connect to[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

  • 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 […] failed: failed to connect to (port 443): connect failed: EHOSTUNREACH (no route to host)”
    seems that the app would ignore the specified port in “root url” =

  • developer

    It’s a well-known path problem on your server: redirects to (without port). So DAVdroid tries to connect to (without port) and fails with “EHOSTUNREACH” which it shows to you.

    $ curl -kvX PROPFIND
    * 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 port 1177 (#0)
    *   Trying
    * Connected to ( 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:,,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:
    * 	issuer:,,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:
    > 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:
    < Connection: keep-alive
    <head><title>302 Found</title></head>
    <body bgcolor="white">
    <center><h1>302 Found</h1></center>
    * Connection #0 to host 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.

Log in to reply

Similar topics