Does the current mqtt protcol stack in thingspeak support ipv6? or does it only work with ipv4
Show older comments
Im using JIO SIMs over NBIoT band to connect to mqtt3.thingspeak.com, 1883.
The PDP is set to IPV6.,
The connection is failed.
I have connected to the same broker using AIRTEL SIMs with 2G fallback, PDP IPV4.
The connection is successful.
I wanted to know whether IPv6 is supported or not?
1 Comment
Torsten
on 22 Jun 2026
Answer from AI :
ThingSpeak’s MQTT protocol stack does not currently support native IPv6 connections. Their domain endpoints (e.g., mqtt3.thingspeak.com and api.thingspeak.com) only resolve to IPv4 addresses. Devices running on an IPv4/IPv6 dual-stack network can connect, but networks operating exclusively on IPv6 (such as single-stack 6LoWPAN) require IPv4 translation to function. [1, 2, 3, 4]
Current Broker Details
If you are using constrained IoT devices and need to send sensor data to ThingSpeak over an IPv6-only network (e.g., NB-IoT or cellular connections that hand out IPv6 addresses), you will need to utilize a translation mechanism such as DNS64/NAT64 to route traffic to ThingSpeak's IPv4 infrastructure. [1]
Answers (1)
Currently ThingSpeak's REST and MQTT APIs require IPv4.
Can you set your PDP to IPv4v6 instead of pure IPv6 only?
AT+CGDCONT=1, "IPV4V6", "YOUR_APN_HERE"
Communities
More Answers in the ThingSpeak Community
Categories
Find more on ThingSpeak in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!