# Server of IP changes automatically changes in mqtt in and out

**URL:** <https://discourse.nodered.org/t/server-of-ip-changes-automatically-changes-in-mqtt-in-and-out/26297>\
**Category:** General\
**Created:** [8 May 2020 09:29 UTC](https://discourse.nodered.org/t/server-of-ip-changes-automatically-changes-in-mqtt-in-and-out/26297 "2020-05-08T09:29:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saeed1](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@saeed1](https://discourse.nodered.org/u/saeed1)\
**Post date:** [8 May 2020 09:29 UTC](https://discourse.nodered.org/t/server-of-ip-changes-automatically-changes-in-mqtt-in-and-out/26297/1 "2020-05-08T09:29:39Z")

</div>

Hi,

 ![mqtt in and out](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/6/f6436ae3650881d5d976dead52cca47f715be3d2.png)

Sentek1 is mqtt in node. I want to write localhost as server.  
Sentek2 is mqtt out node. I want to write another IP like 192.168.1.22 as server

Unfortunately, when i adjust the mqtt out node and i write the IP in server box 192.168.1.22, my mqtt in node (Sentek1) automatically takes the IP of mqtt out node.

How can i fix this problem.

Thanks

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [8 May 2020 09:33 UTC](https://discourse.nodered.org/t/server-of-ip-changes-automatically-changes-in-mqtt-in-and-out/26297/2 "2020-05-08T09:33:48Z")

</div>

It's not a bug, it's by design. 😁

The configuration where you enter your MQTT server IP is shared between the nodes, so is the underlying connection.  
If you want to talk to two separate MQTT servers, you need to create a new configuration on the second node.

---

<div class="post-metadata">

**Author:** ![saeed1](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@saeed1](https://discourse.nodered.org/u/saeed1)\
**Post date:** [8 May 2020 09:37 UTC](https://discourse.nodered.org/t/server-of-ip-changes-automatically-changes-in-mqtt-in-and-out/26297/3 "2020-05-08T09:37:13Z")

</div>

Thank you 😊@kuema

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 May 2020 09:37 UTC](https://discourse.nodered.org/t/server-of-ip-changes-automatically-changes-in-mqtt-in-and-out/26297/4 "2020-05-22T09:37:17Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
