The following call (I imported paho.mqtt.client) works if BROKER_ADDR is assigned a specific IP address, but fails if it is assigned 127.0.0.1 or localhost (out of desperation I even tried 0.0.0.0)--
client.connect(BROKER_ADDR, 1883)
Has anyone else encountered or solved this problem?
Note that I also tried importing socket and using socket.gethostbyname(socket.gethostname()) but that just returns 127.0.0.1
Thanks
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.