# mqttClient Service Connect error?

**URL:** <https://mangoh.discourse.group/t/mqttclient-service-connect-error/9093>\
**Category:** Uncategorized\
**Created:** [April 28, 2021, 10:01am UTC](https://mangoh.discourse.group/t/mqttclient-service-connect-error/9093 "2021-04-28T10:01:12Z")\
**Posts on this page:** 1\
**Showing post:** 86

<div class="post-metadata">

**Author:** ![jameswollaeger](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@jameswollaeger](https://mangoh.discourse.group/u/jameswollaeger)\
**Post date:** [May 5, 2021, 3:25pm UTC](https://mangoh.discourse.group/t/mqttclient-service-connect-error/9093/86 "2021-05-05T15:25:59Z")

</div>

In our case, we got an error when trying to connect to mqtt server URL when it was set to non-secured (TCP). When connecting to server over SSL (over port 8883), the issue resolved itself. For some reason, DNS resolution doesn’t work and we are forced to use the ip address of the server when SSL isn’t enabled.

Following this page(and all the associated linked pages) on the internet was enough to get us functional setup: [Using The Mosquitto\_pub and Mosquitto\_sub MQTT Client Tools- Examples](http://www.steves-internet-guide.com/mosquitto_pub-sub-clients/)

---

_[View the full topic](https://mangoh.discourse.group/t/mqttclient-service-connect-error/9093)._
