This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MQTT Sample code is not connecting

The sample code at ncs/nrf/samples/nrf9160/mqtt_simple is not connecting. I dod not make any changes to the ode. I am using NB-IoT. LTE is connected. The link monitor, LTE is in green. The error code is ERROR: mqtt_connect -60

Kindly advice to resolve this

Parents Reply
  • Please use a service for ipv6 dns lookup. If you search using google/duckduckgo etc for this, you will find one. If you have ipv6 connection, you can use "nslookup" program.

    That will show that there's only a ipv4 answer for www.beavernews.net:

    $ nslookup beavernews.net
    Server:		127.0.0.53
    Address:	127.0.0.53#53
    
    Non-authoritative answer:
    Name:	beavernews.net
    Address: 64.111.109.81
    
    

     

    Here's an example how it should look if ipv4 and ipv6 are both reported:

    $ nslookup google.com
    Server:		127.0.0.53
    Address:	127.0.0.53#53
    
    Non-authoritative answer:
    Name:	google.com
    Address: 172.217.5.238
    Name:	google.com
    Address: 2607:f8b0:4004:82a::200e

Children
Related