eclipse-paho / paho.mqtt.m2mqtt

Eclipse Public License 1.0
521 stars 303 forks source link

MQTT Client automatically connects to broker via IPv6 #110

Open tjeitner opened 5 years ago

tjeitner commented 5 years ago

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?

zacsonskaria commented 5 years ago

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