MQTT route with IPv6 Host

Hi guys,

I previously had an IPv4 MQTT broker, which worked without any problems. Now I have switched providers and am currently trying to switch the connection to the IPv6 host. With other tools, I can connect to the IPv6 host without issues and can also send and receive messages. Are IPv6 routes even possible?

Hello,

IPv6 addresses of that format should work. If I use broker mqtt://[::ffff:05c4:4e1c] (test.mosquitto.org) and port 1883, I’m able to route some test events. It seems for your particular route, Notehub is getting a connect: network is unreachable error. Is it possible this address is not accessible from outside of your network?

Hello Scott,

Thank you for your reply. The MQTT broker is hosted on an external server and is fully accessible. For example, I can connect to the broker via the MQTT Explorer application from my private network, from a company network, as well as from a mobile network and see incoming messages that I send from another sensor.

I am actually receiving the error message Connection failed: network Error : dial tcp [2a01:****:****:****::1]:1883: connect: network is unreachable(I added the * manually)

My broker uses a username and password, but that shouldn’t be the problem.

Hello,

I’m not able to telnet to the IP address specified in your route (IP address obfuscated by me):

$ telnet 2a01:***:****:****::1 1883
Trying 2a01:***:****:****::1...
telnet: connect to address 2a01:***:****:****::1: No route to host
telnet: Unable to connect to remote host

However, when I try to telnet to test.mosquitto.org via its IPv6 address, it works:

$ telnet ::ffff:05c4:4e1c 1883
Trying ::ffff:5.196.78.28…
Connected to ks.ral.me.
Escape character is ‘^]’.