nRF9160 https_client sample error

Toolchains: v2.5.0

SDKs: v2.5.0

I followed this sample code https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/nrf9160/https_client/README.html on an nRF9160DK. However, I got a connect() failed, err: 113. I'm not sure what is wrong.

*** Booting nRF Connect SDK v2.5.0 ***
HTTPS client sample started
Bringing network interface up
Provisioning certificate
Connecting to the network
+CEREG: 2,"880D","0B964411",7
+CSCON: 1
+CGEV: ME PDN ACT 0,0
+CNEC_ESM: 50,0
+CEREG: 5,"880D","0B964411",7,,,"11100000","11100000"
Network connectivity established and IP address assigned
Looking up example.com
+CSCON: 0
+CSCON: 1
+CSCON: 0
+CSCON: 1
Resolved 93.184.216.34 (AF_INET)
TLS Setup
Connecting to example.com:443
connect() failed, err: 113
+CGEV: ME PDN DEACT 0
+CEREG: 0
+CGEV: ME DETACH
+CSCON: 0
Network connectivity lost
Disconnected from the network

Related