# Mqtt server online

**URL:** <https://discourse.nodered.org/t/mqtt-server-online/81036>\
**Category:** General\
**Tags:** mqtt\
**Created:** [4 September 2023 15:01 UTC](https://discourse.nodered.org/t/mqtt-server-online/81036 "2023-09-04T15:01:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![issambfs1](https://avatars.discourse-cdn.com/v4/letter/i/ea666f/32.png) [@issambfs1](https://discourse.nodered.org/u/issambfs1)\
**Post date:** [4 September 2023 15:01 UTC](https://discourse.nodered.org/t/mqtt-server-online/81036/1 "2023-09-04T15:01:10Z")

</div>

hi i wanna to send msg via mqtt on pi to win 10 mqtt using node-red online "via internet" . how can i do that should i creat a server of mqtt or is there any other easy option . and thinks

---

<div class="post-metadata">

**Author:** ![stefan24](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stefan24/32/23075_2.png) [@stefan24](https://discourse.nodered.org/u/stefan24)\
**Post date:** [4 September 2023 15:19 UTC](https://discourse.nodered.org/t/mqtt-server-online/81036/2 "2023-09-04T15:19:28Z")

</div>

I guess, both are NOT in the same network.  
Install mosquitto or some other MQTT broker on either side (Rasperry Pi or Windows), but secure it with password AND TLS. Then forward a port (either standard port or any other) for MQTT from your router to the device with the broker. Use a static public IP or a DYNDNS service to get the public IP of the router, which made the port forward.  
Then subscribe on one side and publish on the other side. One side locally, the other side over the internet.

> **[Download](https://mosquitto.org/download/)**
>
> Source
> 
> mosquitto-2.0.17.tar.gz (GPG signature)
> Git source code repository (github.com)
> 
> Older downloads are available at https://mosquitto.org/files/
> Binary Installation
> The binary packages listed be

---

<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:** [4 September 2023 15:21 UTC](https://discourse.nodered.org/t/mqtt-server-online/81036/3 "2023-09-04T15:21:53Z")

</div>

If the devices are all on the same LAN, install Mosquitto on one of the Pies.  
Otherwise use a cloud based MQTT broker such as hivemq.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 September 2023 21:00 UTC](https://discourse.nodered.org/t/mqtt-server-online/81036/4 "2023-09-04T21:00:32Z")

</div>

If you are not familiar with securing services over the Internet, I would strongly recommend that you try to use some kind of secure tunnelling service instead if you can.

Also, read the FAQ on security:

> [@Safely accessing Node-RED over the Internet](https://discourse.nodered.org/t/safely-accessing-node-red-over-the-internet/45024):
>
> Update 2025-02-19 The best advice for most people doing home automation is still: Don't expose Node-RED to the outside world! Where you really have to have some outside access, keep it as hands-off and restricted as possible. For example, using a Telegram bot. Also keep it as minimal as possible, e.g. Don't expose the Editor - EVER! If you want to provide remote control of your heating or the precious plants in your greenhouse, provide explicit controls with strong limits. Don't expose ever…

---

<div class="post-metadata">

**Author:** ![issambfs1](https://avatars.discourse-cdn.com/v4/letter/i/ea666f/32.png) [@issambfs1](https://discourse.nodered.org/u/issambfs1)\
**Post date:** [5 September 2023 14:32 UTC](https://discourse.nodered.org/t/mqtt-server-online/81036/5 "2023-09-05T14:32:24Z")

</div>

my devises are not in some network and need a way to connect between 2 at 5 devise via mqtt or any other protocol . but i don't have the fix ip adress on them so i was lookin for a secure way transmit data . if it possible i don't wanna use vpn . i just need some thing like mqtt server and cheap

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 September 2023 15:26 UTC](https://discourse.nodered.org/t/mqtt-server-online/81036/6 "2023-09-05T15:26:22Z")

</div>

> [@jbudd](#):
>
> Otherwise use a cloud based MQTT broker such as hivemq.

Did you investigate that suggestion?

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [5 September 2023 16:47 UTC](https://discourse.nodered.org/t/mqtt-server-online/81036/7 "2023-09-05T16:47:18Z")

</div>

You state the devices don't have a fixed ip, do you have any control over the devices? What are they?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [5 September 2023 19:17 UTC](https://discourse.nodered.org/t/mqtt-server-online/81036/8 "2023-09-05T19:17:24Z")

</div>

> [@issambfs1](#):
>
> i just need some thing like mqtt server and cheap

Which is perfectly possible - but dangerous if you don't know what you are doing.

---

<div class="post-metadata">

**Author:** ![rrabbit454](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rrabbit454/32/74694_2.png) [@rrabbit454](https://discourse.nodered.org/u/rrabbit454)\
**Post date:** [2 October 2023 17:54 UTC](https://discourse.nodered.org/t/mqtt-server-online/81036/9 "2023-10-02T17:54:26Z")

</div>

https://www.youtube.com/embed/videoseries?list=PLeP7QY3LYXNXfwSeEEggrK1gJg_gSJVVH&wmode=transparent&rel=0&autohide=1&showinfo=1&enablejsapi=1

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [2 October 2023 19:02 UTC](https://discourse.nodered.org/t/mqtt-server-online/81036/10 "2023-10-02T19:02:11Z")

</div>

Sorry, but what is this adding to the conversation?

---

<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:** [1 December 2023 19:03 UTC](https://discourse.nodered.org/t/mqtt-server-online/81036/11 "2023-12-01T19:03:06Z")

</div>

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