# Node-red to redis server running on NON localhost

**URL:** <https://discourse.nodered.org/t/node-red-to-redis-server-running-on-non-localhost/38438>\
**Category:** General\
**Created:** [3 January 2021 02:39 UTC](https://discourse.nodered.org/t/node-red-to-redis-server-running-on-non-localhost/38438 "2021-01-03T02:39:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingkong9001](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kingkong9001/32/34624_2.png) [@kingkong9001](https://discourse.nodered.org/u/kingkong9001)\
**Post date:** [3 January 2021 02:39 UTC](https://discourse.nodered.org/t/node-red-to-redis-server-running-on-non-localhost/38438/1 "2021-01-03T02:39:29Z")

</div>

I'm looking for a way to send MQTT received data to a Redis database instance that isn't running on localhost. I have looked at the contrib nodes out there and don't see a solution. Does anyone have any luck doing this?

Thanks

---

<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:** [3 January 2021 10:01 UTC](https://discourse.nodered.org/t/node-red-to-redis-server-running-on-non-localhost/38438/2 "2021-01-03T10:01:38Z")

</div>

Hi, @kingkong9001, welcome to the forum

I haven't used redis but I see that node-red-contrib-redis has a config for setting the server. Does that not work if the server is remote?

---

<div class="post-metadata">

**Author:** ![kingkong9001](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kingkong9001/32/34624_2.png) [@kingkong9001](https://discourse.nodered.org/u/kingkong9001)\
**Post date:** [3 January 2021 19:59 UTC](https://discourse.nodered.org/t/node-red-to-redis-server-running-on-non-localhost/38438/3 "2021-01-03T19:59:38Z")

</div>

Correct, it doesn't work, it only connects to localhost. 127.0.0.1

So I'm looking for someone who might have gotten it to work or some other solution to communicate with remote redis server.

---

<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:** [3 January 2021 20:23 UTC](https://discourse.nodered.org/t/node-red-to-redis-server-running-on-non-localhost/38438/4 "2021-01-03T20:23:16Z")

</div>

What happens when you try it with a remote connection? Are there any errors in the node-red log?  
Have you checked with another client that the redis server is accessible from the machine running node-red

---

<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:** [4 March 2021 20:23 UTC](https://discourse.nodered.org/t/node-red-to-redis-server-running-on-non-localhost/38438/5 "2021-03-04T20:23:25Z")

</div>

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