Archived Forum Post

Index of archived forum posts

Question:

CkSocket::Connect and ipv6

Feb 20 '14 at 22:14

Hi,

I'm wondering if it's possible to create client connection using CkSocket class with ipv6 address? When I try, it fails:

Connect_Socket: DllDate: Aug 15 2013 ChilkatVersion: 9.4.1.42 UnlockPrefix: xxxxxxxx Username: xxxxxxxx Architecture: Little Endian; 32-bit Language: Visual C++ 9.0 VerboseLogging: 0 objectId: 2 Connect_Socket: hostname: [fe80::3cc7:870b:e115:c4e2%11] port: 6133 ssl: 1 maxWaitMs: 20000 ConnectTimeoutMs_1: 20000 Multi-threaded hostname to IP address resolution resolveHostname6: Resolving domain name (IPV4/IPV6)... --resolveHostname6 Failed. --Connect_Socket --Connect_Socket --ChilkatLog


Answer

Post the full LastErrorText. Posting only a portion omits the critical information at the beginning which tells how old of a version you are using, and what programming language, architecture, operating system, etc. This might be something that is already fixed...


Answer

Please test using this new build:

32-bit: http://www.chilkatsoft.com/preRelease/chilkat-9.5.0-x86-vc9.zip

64-bit: http://www.chilkatsoft.com/preRelease/chilkat-9.5.0-x86_64-vc9.zip


Answer

Is this a beta release? I don't see it on main download page. Having some problems getting a build with it, related to zip component that we're also using:

ChilkatRel.lib(CkZipEntryW.obj) : error LNK2001: unresolved external symbol "public: __thiscall DsoBaseProgress::DsoBaseProgress(void)" (??0DsoBaseProgress@@QAE@XZ)

If it makes differences, we were using the VC9-SP1 version of the 9.4.1 release....


Answer

Wrote a separate console application to test new build, here's what I get. Test environment is Win2k8 R2, I tried the v6 address with and without brackets.

  Connect_Socket:
    DllDate: Feb 18 2014
    ChilkatVersion: 9.5.0.13
    UnlockPrefix: xxxxx
    Username: xxxxx
    Architecture: Little Endian; 32-bit
    Language: Visual C++ 9.0 (32-bit)
    VerboseLogging: 0
    objectId: 1
    Connect_Socket:
      hostname: [fe80::3cc7:870b:e115:c4e2%11]
      port: 6133
      ssl: 1
      maxWaitMs: 5000
      connect2:
        connectImplicitSsl:
          connectSocket:
            connect_ipv6_or_ipv4:
              resolveHostname6:
                getAddressInfo:
                  Failed to get host address info. (3)
                  SocketError: WSAHOST_NOT_FOUND No such host is known.
                  hostOrIpAddr: [fe80
                  port: 6133
                  Versions of Windows earlier than Windows XP are limited to handling IPv4 only
                  On Windows Server 2003 and Windows XP, IPv6 addresses are returned only if IPv6 is installed on the local computer.
                --getAddressInfo
              --resolveHostname6
              Domain to IP address resolution failed.
            --connect_ipv6_or_ipv4
          --connectSocket
        --connectImplicitSsl
        failReason1: 2
      --connect2
      Failed.
    --Connect_Socket
  --Connect_Socket
--ChilkatLog

Answer

Any more suggestions?