# Node-RED with S7-317 CPU - "Error: connect ECONNREFUSED 192.168.0.1:102"

**URL:** <https://discourse.nodered.org/t/node-red-with-s7-317-cpu-error-connect-econnrefused-192-168-0-1-102/53960>\
**Category:** Industrial\
**Created:** [18 November 2021 18:27 UTC](https://discourse.nodered.org/t/node-red-with-s7-317-cpu-error-connect-econnrefused-192-168-0-1-102/53960 "2021-11-18T18:27:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [18 November 2021 18:27 UTC](https://discourse.nodered.org/t/node-red-with-s7-317-cpu-error-connect-econnrefused-192-168-0-1-102/53960/1 "2021-11-18T18:27:58Z")

</div>

Hi All!

I want to read and write a DB in a S7-317 CPU (317-2FK14-0AB0).  
I setup the Node-RED like below:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/9/39ce971088265f22b5e4748891f0c2424ecb99ee.png)  
I tried to change slot numbers, I tried to modified the IP of the CPU as troubleshoots, but nothing helped. I do not find a proper description to setup the communication between S7-300 and Node-RED with Simatic Manager. I know, that in TIA there is additional steps to do, but I want to use Simatic Manager with S7-300 CPU!

What am I doing wrong? Why the CPU is offline?

I only use 1 variable. I tried other as well without any success.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/b/8b67955da7120c3fd5cce3c6d13a914bd0312c01.png)

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [19 November 2021 15:57 UTC](https://discourse.nodered.org/t/node-red-with-s7-317-cpu-error-connect-econnrefused-192-168-0-1-102/53960/2 "2021-11-19T15:57:30Z")

</div>

Anybody? Anything? Do you see this question?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [19 November 2021 16:01 UTC](https://discourse.nodered.org/t/node-red-with-s7-317-cpu-error-connect-econnrefused-192-168-0-1-102/53960/3 "2021-11-19T16:01:01Z")

</div>

moved to "Industrial" thread as not about creating nodes.

---

<div class="post-metadata">

**Author:** ![Giu-seppe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/giu-seppe/32/40489_2.png) [@Giu-seppe](https://discourse.nodered.org/u/Giu-seppe)\
**Post date:** [19 November 2021 16:12 UTC](https://discourse.nodered.org/t/node-red-with-s7-317-cpu-error-connect-econnrefused-192-168-0-1-102/53960/4 "2021-11-19T16:12:27Z")

</div>

Have you tried other slot numbers like 0 ?

---

<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:** [19 November 2021 16:15 UTC](https://discourse.nodered.org/t/node-red-with-s7-317-cpu-error-connect-econnrefused-192-168-0-1-102/53960/5 "2021-11-19T16:15:46Z")

</div>

I don't know anything about that node, but the EHOSTUNREACH error generally means that there is a fundamental problem getting to the device via the network.

1. What is the IP of the device running node-red?
2. Are they on the same local network?
3. What hardware/OS is node-red running on?
4. How was node-red installed? Did you use Docker for example?
5. Can you access the device from the node-red system using a different client application?

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [23 November 2021 20:26 UTC](https://discourse.nodered.org/t/node-red-with-s7-317-cpu-error-connect-econnrefused-192-168-0-1-102/53960/6 "2021-11-23T20:26:08Z")

</div>

Hello!

Sorry for the late answer!

The problem was with the network. They were not on the same local network. I forgot to setup the correct static IP for the Raspberry.

---

<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:** [7 December 2021 20:26 UTC](https://discourse.nodered.org/t/node-red-with-s7-317-cpu-error-connect-econnrefused-192-168-0-1-102/53960/7 "2021-12-07T20:26:25Z")

</div>

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