# Can I input host,port,user,pass, topic to subscribe in MQTT node?

**URL:** https://discourse.nodered.org/t/can-i-input-host-port-user-pass-topic-to-subscribe-in-mqtt-node/70876
**Category:** General
**Tags:** function-node, mqtt
**Created:** [19 November 2022 15:48 UTC](https://discourse.nodered.org/t/can-i-input-host-port-user-pass-topic-to-subscribe-in-mqtt-node/70876 "2022-11-19T15:48:58Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [19 November 2022 17:23 UTC](https://discourse.nodered.org/t/can-i-input-host-port-user-pass-topic-to-subscribe-in-mqtt-node/70876/7 "2022-11-19T17:23:38Z")

</div>

Thanks Colin, yes it looks like I misunderstood that thread. It has a single "broker" setup with IP 0.0.0.0.

I confess I'm pretty confused about this but I did get it working once [https://discourse.nodered.org/t/mqtt-dynamic-connection-with-changing-ip-adress/69299/3](https://discourse.nodered.org/t/mqtt-dynamic-connection-with-changing-ip-adress/69299/3).  
I can't replicate that now though, nor at the moment can I get @Steve-Mcl's example to work.

---

_[View the full topic](https://discourse.nodered.org/t/can-i-input-host-port-user-pass-topic-to-subscribe-in-mqtt-node/70876)._
