Hi,
I am trying to use nRF52840dk and the download_client library to download files from my CoAP server.
I am using the CoAP Server example, and I have added the following options in the prj.conf:
# Enable OpenThread SLAAC
CONFIG_OPENTHREAD_SLAAC=y
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=6
# Enable Download Client
CONFIG_DOWNLOAD_CLIENT=y
CONFIG_DOWNLOAD_CLIENT_COAP_BLOCK_SIZE_512=y
CONFIG_DOWNLOAD_CLIENT_IPV6=y
CONFIG_DOWNLOAD_CLIENT_SHELL=y
Then I built the project and flashed it on the DK. However, I got errors reported when I run the following commands.
uart:~$ dc config apn "" APN set: uart:~$ dc config sec_tag -1 Security tag set: -1 uart:~$ dc connect coap://[64:ff9b::101.133.175.244] download_client_connect() failed, err -123 uart:~$ dc connect coap://[64:ff9b::101.133.175.244]:5683 download_client_connect() failed, err -123 uart:~$ dc connect 64:ff9b::101.133.175.244]:5683 W: Failed to resolve hostname 64 on IPv6 W: Failed to resolve hostname 64 on IPv4 download_client_connect() failed, err -118 uart:~$ dc connect 64:ff9b::101.133.175.244:5683 W: Failed to resolve hostname 64 on IPv6 W: Failed to resolve hostname 64 on IPv4 download_client_connect() failed, err -118 uart:~$ dc connect [64:ff9b::101.133.175.244] E: Failed to create socket, err 107 download_client_connect() failed, err -107 uart:~$ dc connect [64:ff9b::101.133.175.244]:5683 E: Failed to create socket, err 107 download_client_connect() failed, err -107 uart:~$ dc download coap://[64:ff9b::101.133.175.244]/image/black download_client_start() failed, err -128 uart:~$ dc download coap://[64:ff9b::101.133.175.244]:5683/image/black download_client_start() failed, err -128 uart:~$ dc download [64:ff9b::101.133.175.244]/image/black download_client_start() failed, err -128 uart:~$ dc download [64:ff9b::101.133.175.244]:5683/image/black download_client_start() failed, err -128
It works fine When I use the OpenThread Shell CoAP command.

Could you please help me with the above erros? Thank you!