# ADS Connection to Twincat 2 from Node Red Docker

**URL:** https://discourse.nodered.org/t/ads-connection-to-twincat-2-from-node-red-docker/37411
**Category:** General
**Created:** [12 December 2020 17:05 UTC](https://discourse.nodered.org/t/ads-connection-to-twincat-2-from-node-red-docker/37411 "2020-12-12T17:05:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MichaelSeiffert](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@MichaelSeiffert](https://discourse.nodered.org/u/MichaelSeiffert)
#### Post date: [12 December 2020 17:05 UTC](https://discourse.nodered.org/t/ads-connection-to-twincat-2-from-node-red-docker/37411/1 "2020-12-12T17:05:09Z")

</div>

Hello,

this ar my first steps with node-red.  
I´ll try to connect my CX9020 (twincat 2 V2.11 B2306) to node-red, which is installed on my qnap nas in a docker container. I installed the node-red-contrib-ads.  
I can´t connect with the issue. "Error on connect: check target NetId or routing".

ok, i know that i have to add a route between my cx and node-red. But i´m confused about the AmsNet ID of Node-red which i have to type in the static route on my cx.

Here is my nework config:

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

I think that the IP 10.0.3.3 is right and so the ams net id is 10.0.3.3.1.1, but it doesn´t work..

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bdeabd7cdf7cd4fb2f8a0650fea113f9f0940b86.png)

This are my Settings in node-red.

can someone please help me?

Thanks

Michael

---

<div class="post-metadata">

### Author: ![MichaelSeiffert](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@MichaelSeiffert](https://discourse.nodered.org/u/MichaelSeiffert)
#### Post date: [13 December 2020 13:42 UTC](https://discourse.nodered.org/t/ads-connection-to-twincat-2-from-node-red-docker/37411/2 "2020-12-13T13:42:16Z")

</div>

Hello,

i solved the problem.  
I installed node-red on my local pc to test the connection with a known ams net id.  
The connection works perfect. And since this time the connection from my docker node red is also ok.

---

<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: [11 February 2021 13:42 UTC](https://discourse.nodered.org/t/ads-connection-to-twincat-2-from-node-red-docker/37411/3 "2021-02-11T13:42:24Z")

</div>

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