# ADS Client connection to Twincat 3

**URL:** https://discourse.nodered.org/t/ads-client-connection-to-twincat-3/75870
**Category:** Industrial
**Created:** [28 February 2023 12:51 UTC](https://discourse.nodered.org/t/ads-client-connection-to-twincat-3/75870 "2023-02-28T12:51:02Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ALIEN](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alien/32/62198_2.png) [@ALIEN](https://discourse.nodered.org/u/ALIEN)
#### Post date: [28 February 2023 12:51 UTC](https://discourse.nodered.org/t/ads-client-connection-to-twincat-3/75870/1 "2023-02-28T12:51:02Z")

</div>

Dear All,

Hi, I am trying to stablish a connection between Beckhoff PLC and node red! I followed the instructure  
written [here](https://flows.nodered.org/node/node-red-contrib-ads-client) but I couldn't succeed!

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

I would appreciate it if you help me to know what is missed in configuration!

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [1 March 2023 08:18 UTC](https://discourse.nodered.org/t/ads-client-connection-to-twincat-3/75870/2 "2023-03-01T08:18:18Z")

</div>

First thing that stands out for me is/are the TWO DIFFERENT IP ADDRESSES!

In the right it is `127.0.0.1` yet in the node it is `140.x.x.x`

(It would make people lives easier if you posted the outputs rather than screen shots)

---

<div class="post-metadata">

### Author: ![ALIEN](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alien/32/62198_2.png) [@ALIEN](https://discourse.nodered.org/u/ALIEN)
#### Post date: [1 March 2023 08:55 UTC](https://discourse.nodered.org/t/ads-client-connection-to-twincat-3/75870/3 "2023-03-01T08:55:25Z")

</div>

Hi, Thanks for your reply,

this is the output :`ClientException: Connection to 127.0.0.1:48898 failed - socket ended by remote`

Twincat 3 is running on my PC localy and AMS NetId is : 140.0.19.3.1.1

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [1 March 2023 08:58 UTC](https://discourse.nodered.org/t/ads-client-connection-to-twincat-3/75870/4 "2023-03-01T08:58:29Z")

</div>

You need to confirm that the server is running on port 48898.

Have you gone through all the stuff here:

> **[GitHub - jisotalo/ads-client: Unofficial Node.js ADS library for connecting...](https://github.com/jisotalo/ads-client#localhost-support)**
>
> Unofficial Node.js ADS library for connecting to Beckhoff TwinCAT automation systems using ADS protocol. - GitHub - jisotalo/ads-client: Unofficial Node.js ADS library for connecting to Beckhoff Tw...

Because if not I fear that is not helping as you are accessing localhost.

---

<div class="post-metadata">

### Author: ![ALIEN](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alien/32/62198_2.png) [@ALIEN](https://discourse.nodered.org/u/ALIEN)
#### Post date: [1 March 2023 09:11 UTC](https://discourse.nodered.org/t/ads-client-connection-to-twincat-3/75870/5 "2023-03-01T09:11:24Z")

</div>

Dear @Trying_to_learn ,

Thanks alot, I just followed the instructure and test it. Now communication is working!  
Once again thank you for your support.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [1 March 2023 09:12 UTC](https://discourse.nodered.org/t/ads-client-connection-to-twincat-3/75870/6 "2023-03-01T09:12:46Z")

</div>

(Wow! I know something.)

No problems.  
Glad I could help.

(I understand that sometimes you can sometimes miss things and don't _see_ it until someone else mentions it.)

---

<div class="post-metadata">

### Author: ![ALIEN](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alien/32/62198_2.png) [@ALIEN](https://discourse.nodered.org/u/ALIEN)
#### Post date: [1 March 2023 09:17 UTC](https://discourse.nodered.org/t/ads-client-connection-to-twincat-3/75870/7 "2023-03-01T09:17:10Z")

</div>

Actually, I never thought that it might be due to the  
version of Twincat 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: [15 March 2023 09:17 UTC](https://discourse.nodered.org/t/ads-client-connection-to-twincat-3/75870/8 "2023-03-15T09:17:32Z")

</div>

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