eclipse/paho.mqtt.m2mqtt

MQTT Client automatically connects to broker via IPv6

tjeitner opened this issue · 1 comments

We have a problem establishing a connection to the broker via the host name. Apparently the client is trying to connect to the broker using an IPv6 address if the computer on which the client is running has also an IPv6 address itself. Our broker only accepts IPv4 connections.
Probably the problem is caused by the following change in the client library

http://www.embedded101.com/Blogs/PaoloPatierno/entryid/365/m2mqtt-support-connection-to-a-broker-in-ipv6

Can I configure the client to only establish IPv4 connections?

I am also facing similar issues when using paho mqtt for Android. Have anyone found a solution to this ?