# Error connecting to PLC in node-red-contrib-cip-ethernet-ip

**URL:** <https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668>\
**Category:** General\
**Created:** [9 February 2021 12:02 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668 "2021-02-09T12:02:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndz](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@ndz](https://discourse.nodered.org/u/ndz)\
**Post date:** [9 February 2021 12:02 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668/1 "2021-02-09T12:02:10Z")

</div>

Hi guys, im sorry if this question looks stupid, im new in node-red.

I keep getting this error:

Error connecting to PLC: Error: TIMEOUT occurred while attempting to establish TCP connection with Controller.

I'm NOT trying to use node-red-contrib-cip-ethernet-ip, but i cant uninstall it because it says its "in use", so basically i cant do anything at all in node red because i only get this error all the time and i dont know how to fix it, if i could just remove this node icould try to understand whats happening.

---

<div class="post-metadata">

**Author:** ![leftymuller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/leftymuller/32/102326_2.png) [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Post date:** [9 February 2021 12:15 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668/2 "2021-02-09T12:15:43Z")

</div>

First thing id do is confirm the TCP port is open on the PLC  
without knowing that you could be chasing your tail

---

<div class="post-metadata">

**Author:** ![ndz](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@ndz](https://discourse.nodered.org/u/ndz)\
**Post date:** [9 February 2021 12:29 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668/3 "2021-02-09T12:29:04Z")

</div>

i try to google it but idk how to check it.

i used "netstat -aon" on cmd but i dont really know how to read the result it gaves me

---

<div class="post-metadata">

**Author:** ![leftymuller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/leftymuller/32/102326_2.png) [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Post date:** [9 February 2021 12:31 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668/4 "2021-02-09T12:31:41Z")

</div>

If your on windows grab something like angry IP scanner and tell it to scan whatever port the PLC uses

If your on linux use nmap

Do you know what port the PLC is using?

FYI.. netstat is only going to tell you what ports are open or inuse on your local windows PC

---

<div class="post-metadata">

**Author:** ![ndz](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@ndz](https://discourse.nodered.org/u/ndz)\
**Post date:** [9 February 2021 12:36 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668/5 "2021-02-09T12:36:25Z")

</div>

> [@leftymuller](#):
>
> Do you know what port the PLC is using?

i dont =/

---

<div class="post-metadata">

**Author:** ![leftymuller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/leftymuller/32/102326_2.png) [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Post date:** [9 February 2021 12:37 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668/6 "2021-02-09T12:37:12Z")

</div>

some more info if your going to angry IP

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/8/c88b8a4f7e4b04836b24d595c97aaf1243d5c28e.png)

when you do a scan it will show this

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/f/cf79a59b737b9531bfd804d1f777142c28d7ffde.png)

hope this helps

---

<div class="post-metadata">

**Author:** ![leftymuller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/leftymuller/32/102326_2.png) [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Post date:** [9 February 2021 12:41 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668/7 "2021-02-09T12:41:30Z")

</div>

> [@ndz](#):
>
> i dont =/

thats a bit of a problem then!

a bit of a search it may be port 49100 ?? not sure

---

<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:** [9 February 2021 13:34 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668/8 "2021-02-09T13:34:16Z")

</div>

Click on the Hamburger menu in node red and select Configuration Nodes, then select unused at the top. I expect you will see a config node to do with the cip node there. Click it and hit Delete. You can also delete any other unused nodes there. Then deploy. Then you should be able to uninstall it.

---

<div class="post-metadata">

**Author:** ![ndz](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@ndz](https://discourse.nodered.org/u/ndz)\
**Post date:** [9 February 2021 15:53 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668/9 "2021-02-09T15:53:24Z")

</div>

Thanks a lot, it works, sorry for the silly problem.

---

<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:** [9 February 2021 16:18 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668/10 "2021-02-09T16:18:02Z")

</div>

No need to apologise, it isn't at all obvious what is going on until you know that this can happen.

---

<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:** [23 February 2021 16:18 UTC](https://discourse.nodered.org/t/error-connecting-to-plc-in-node-red-contrib-cip-ethernet-ip/40668/11 "2021-02-23T16:18:19Z")

</div>

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