# Error connecting to PLC: Error: connect EHOSTUNREACH

**URL:** https://discourse.nodered.org/t/error-connecting-to-plc-error-connect-ehostunreach/62575
**Category:** General
**Tags:** node-red-dashboard
**Created:** [13 May 2022 02:38 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-error-connect-ehostunreach/62575 "2022-05-13T02:38:02Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![CY02](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@CY02](https://discourse.nodered.org/u/CY02)
#### Post date: [13 May 2022 02:38 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-error-connect-ehostunreach/62575/1 "2022-05-13T02:38:02Z")

</div>

I'm currently connecting from node-red to Aubobot through TCP in node-red but node-red shows disconnected and connected frequently, and it shows an error connecting to PLC I have no idea what is this and how to solve it. Also, I can't get any data out of the AUBO. I am able to ping AUBO IP from my computer and have checked the lan cable connection. I have also tried restarting node-red but the problem still persists. I would appreciate any help!

 ![Screenshot (17)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/1/d123e8309d2026e5f7679c80bdbeba4615b148f7.png)

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [13 May 2022 04:28 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-error-connect-ehostunreach/62575/2 "2022-05-13T04:28:54Z")

</div>

Ok some basic network troubleshooting here

Can you SSH into the NR box ? If so do so and then perform a ping to the Aubobot

If you can ping and get responses then try and a Telent connection on the port that the Aubobot is expecting - what happens when you do this ?

Craig

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [13 May 2022 04:30 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-error-connect-ehostunreach/62575/3 "2022-05-13T04:30:54Z")

</div>

Also did you see this other thread ?

> [@Communication through tcp/ip to Aubobot](https://discourse.nodered.org/t/communication-through-tcp-ip-to-aubobot/38125):
>
> I'm currently connecting from node-red to Aubobot through tcp in node. But after I connected them, it will show an intermittent state of the connection. Does anyone encounter this before? [Capture] [Capture]

Craig

---

<div class="post-metadata">

### Author: ![CY02](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@CY02](https://discourse.nodered.org/u/CY02)
#### Post date: [13 May 2022 08:35 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-error-connect-ehostunreach/62575/4 "2022-05-13T08:35:17Z")

</div>

Thank you for the suggestion craig! I tried to ping the IP address of the Aubo but it was unsuccessful and displayed an error that says "Error connecting to PLC: Error: connect EHOSTUNREACH" . However, i am unsure of what SSH and NR box is and i am uncertain of the steps i see online as i am currently new to the network field. Are you able to provide more details on these steps?

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [13 May 2022 22:17 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-error-connect-ehostunreach/62575/5 "2022-05-13T22:17:49Z")

</div>

What is Node Red running on ? Raspberry PI etc ?

What is the operating system of your Machine that you are workign at ?

Assuming it is Windows 7 or above

You need to download a program called Putty and install it then

Then open it up and create a ss connection to your Node Red

Login to the Node red computer and then at the command line

run

Ping "IP Address of Aubo" and see what reply you get

Craig

---

<div class="post-metadata">

### Author: ![CY02](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@CY02](https://discourse.nodered.org/u/CY02)
#### Post date: [19 May 2022 09:08 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-error-connect-ehostunreach/62575/6 "2022-05-19T09:08:02Z")

</div>

hi, sorry for the late reply. I try to use the putty but it shows nothing I have no idea what is wrong and I have found some similar cases like mine, it says it might be PLC not accepting connections anymore, will this possible?

 ![Screenshot (21)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/0/4047006a993d81794db760209ec4dd5ec267ac07.png)

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [20 May 2022 01:28 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-error-connect-ehostunreach/62575/7 "2022-05-20T01:28:47Z")

</div>

Well it looks like your PLC has plenty of resources available so i do not think that it is an issue there - but it may have some sort of firewall protection - so it could be actively refusing the connection - but you would hope there would be some sort of message to that effect.

I think you still have a network issue.

So as per my other questions

1. What is Node Red running on ?
2. It appears you are using a windows PC ?

Craig

---

<div class="post-metadata">

### Author: ![CY02](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@CY02](https://discourse.nodered.org/u/CY02)
#### Post date: [20 May 2022 02:00 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-error-connect-ehostunreach/62575/8 "2022-05-20T02:00:40Z")

</div>

our node-red is running on SICK TDC-E  
we are using a window PC it is window 7

---

<div class="post-metadata">

### Author: ![CY02](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@CY02](https://discourse.nodered.org/u/CY02)
#### Post date: [20 May 2022 04:01 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-error-connect-ehostunreach/62575/9 "2022-05-20T04:01:31Z")

</div>

hi, I just found out that the error connecting to plc is not from the AUBO flow but is another flow

 ![Screenshot (38)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/ee13c7e63be99795efd5756150e9ea7f4f9bf3e7.png)  
(this is the error connecting to plc from, v1.3.5)  
 ![Screenshot (39)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/1171616f97257caf9184cbbf66f0d906952e532b.png)  
(this is the flow I try on the v1.3.5, but it shows the same result, the connection is unstable and when I debug there is no data shown)  
the connection of the AUBO is very unstable, will this be the result of why there is no data shown? I used v1.3.5 and v0.20.3 to try but the result is the same no data coming out and when I debug the node but there is nothing shown  
 ![Screenshot (22)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/8/18d6a91984396cd0edff71e82fb9d6648df3617a.png)  
the error at the side is from the other flow. (this is v0.20.3)

---

<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: [19 July 2022 04:01 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-error-connect-ehostunreach/62575/10 "2022-07-19T04:01:37Z")

</div>

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