# Mqtt engine connection

**URL:** <https://forum.inductiveautomation.com/t/mqtt-engine-connection/99048>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [November 24, 2024, 10:35pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-connection/99048 "2024-11-24T22:35:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jennifer\_sanchez](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jennifer\_sanchez](https://forum.inductiveautomation.com/u/jennifer_sanchez)\
**Post date:** [November 24, 2024, 10:35pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-connection/99048/1 "2024-11-24T22:35:20Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/b/fb76a5fb6655192b5ca131f1eca5ab0d5cc54a5d.png)

GOOD AFTERNOON, I AM TRYING TO MAKE A CONNECTION WITH MQTT ENGINE, BUT ITS STATUS APPEARS NOT CONNECTED AND I JUST FILLED IN THE NAME, HOST AND PORT DATA AND SAID SAVE AND I DON'T KNOW WHAT ELSE TO DO TO MAKE IT APPEAR CONNECTED. THANK YOU

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [November 24, 2024, 10:41pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-connection/99048/2 "2024-11-24T22:41:25Z")

</div>

If it's not connecting, check your logs and see why it's not connecting. You many need a username and password, but without knowing your setup, I don't know what else to tell you besides check your logs.

---

<div class="post-metadata">

**Author:** ![jennifer\_sanchez](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jennifer\_sanchez](https://forum.inductiveautomation.com/u/jennifer_sanchez)\
**Post date:** [November 24, 2024, 10:54pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-connection/99048/3 "2024-11-24T22:54:29Z")

</div>

I HAVE ALREADY INVESTIGATED EVERYWHERE, IT ONLY SAYS WHAT I FILLED IN, I DON'T SEE HOW I CAN FIND OUT WHY IT DOESN'T CONNECT? I ALSO TRIED PUTTING LOCALHOST:1883 AND IT DID NOT WORK EITHER.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/d/ad73da710afda0425d46a1e424b7b57e5f5d055d.png)

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 24, 2024, 10:57pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-connection/99048/4 "2024-11-24T22:57:00Z")

</div>

WHY ARE WE SHOUTING?? 🤨

---

<div class="post-metadata">

**Author:** ![jennifer\_sanchez](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jennifer\_sanchez](https://forum.inductiveautomation.com/u/jennifer_sanchez)\
**Post date:** [November 24, 2024, 11:10pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-connection/99048/5 "2024-11-24T23:10:58Z")

</div>

I'm sorry, it's my cell phone

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 24, 2024, 11:19pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-connection/99048/6 "2024-11-24T23:19:00Z")

</div>

> [@jennifer\_sanchez](#):
>
> WHY IT DOESN'T CONNECT?

There should be log entries related to the connection failures. Find them in the gateway status pages' Logs page.

Also:

- Are you sure your broker is running?

- Are you sure there's no firewall between your gateway and your broker?

- You mention trying localhost--that would only apply if you are running the broker in the same system as the Gateway, perhaps the Distrubutor module. What is your architecture?

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [November 24, 2024, 11:29pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-connection/99048/7 "2024-11-24T23:29:06Z")

</div>

Are you sure the engine is enabled? There's a separate enable checkbox on the general tab that also needs to be checked.

If your Ignition server has a GUI like Windows, try using an MQTT test client like MQTT Explorer to try to connect to the broker separately from Ignition.

What broker are you using? Mosquito? MQTT distributor module? Chariot? EMQx? Something else?
