# 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:** 8

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 November 2022 17:59 UTC](https://discourse.nodered.org/t/can-i-input-host-port-user-pass-topic-to-subscribe-in-mqtt-node/70876/8 "2022-11-19T17:59:48Z")

</div>

> [@jbudd](#):
>
> I confess I'm pretty confused about this

Hey @jbudd what is the confution? I will try to help.

> [@jbudd](#):
>
> I can't replicate that now though, nor at the moment can I get @Steve-Mcl's example to work

Do you mean this \> [Dynamic MQTT node's "actions-\>connect" guidance needed - #2 by Steve-Mcl](https://discourse.nodered.org/t/dynamic-mqtt-nodes-actions-connect-guidance-needed/58878/2) \< example doesnt work for you?

It still works for me...  
 ![msedge_4OETFHpA9b](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/b/4b89abe7d533772d9b687372113dab6def19f457.gif)

---

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