Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT Client automatically connects to broker via IPv6 #110

Open
tjeitner opened this issue Jul 23, 2019 · 1 comment
Open

MQTT Client automatically connects to broker via IPv6 #110

tjeitner opened this issue Jul 23, 2019 · 1 comment

Comments

@tjeitner
Copy link

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
Copy link

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

josesimoes added a commit to josesimoes/paho.mqtt.m2mqtt that referenced this issue Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants