# Node-red No debug output (WAGO PFC & ecockpit)

**URL:** <https://discourse.nodered.org/t/node-red-no-debug-output-wago-pfc-ecockpit/65368>\
**Category:** General\
**Tags:** docker, debugging, function-node, mqtt\
**Created:** [20 July 2022 14:32 UTC](https://discourse.nodered.org/t/node-red-no-debug-output-wago-pfc-ecockpit/65368 "2022-07-20T14:32:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![RBSI](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@RBSI](https://discourse.nodered.org/u/RBSI)\
**Post date:** [20 July 2022 14:32 UTC](https://discourse.nodered.org/t/node-red-no-debug-output-wago-pfc-ecockpit/65368/1 "2022-07-20T14:32:15Z")

</div>

Hello, i am trying to create a simple program where node-red receives UDP messages from software called ecockpit which creates UDP network sender variables. I am trying to see that variable on the node-red flows by using netvar receiver. However i don't have anything on my output. when i worked with previous version of node red (rpi-v8) it worked fine in terms of communicating on 1202 port via UDP however this version does not. Currently i am using node-red:2.2.2 version. Please see attached image of flow i created.

Please help

 ![Flow errror](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/a/dae870a4a437eff6fd9603b867032c0d4845e67d.png)

---

<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:** [20 July 2022 14:42 UTC](https://discourse.nodered.org/t/node-red-no-debug-output-wago-pfc-ecockpit/65368/2 "2022-07-20T14:42:00Z")

</div>

I notice you are running under docker... have you enabled the correct ports for the container (where node-red is running) to be able to see your host network ?

---

<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:** [20 July 2022 14:56 UTC](https://discourse.nodered.org/t/node-red-no-debug-output-wago-pfc-ecockpit/65368/5 "2022-07-20T14:56:38Z")

</div>

do you really need to use docker ? for low level networking things it often gets in the way (as indeed it is supposed to do :-)...

But you probably need to add some more `-p 1234:1234/udp` like statements to your docker command to let port 1234 (in this case) into and out of the container. Note that only tends to work for direct udp connections - if you are using broadcast or multicast you may need something more.

---

<div class="post-metadata">

**Author:** ![RBSI](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@RBSI](https://discourse.nodered.org/u/RBSI)\
**Post date:** [20 July 2022 15:03 UTC](https://discourse.nodered.org/t/node-red-no-debug-output-wago-pfc-ecockpit/65368/6 "2022-07-20T15:03:32Z")

</div>

Hello thank you for your response. So if i want to access node-red on 1880 port from my local device and the software is sending UDP messages on 1202 port (default port for the software) , is this how the command line should be? i might be running loopback or i am thinking it wrong?

```auto
docker run -it -p 1880:1202 -v node_red_data:/data --name mynodered nodered/node-red:2.2.2

Would you mind little bit more detailed about the command line? 

Thank you

```

---

<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:** [20 July 2022 15:10 UTC](https://discourse.nodered.org/t/node-red-no-debug-output-wago-pfc-ecockpit/65368/7 "2022-07-20T15:10:40Z")

</div>

no - you need `-p 1880:1880` to allow the web browser port through (on tcp the default) - - you need to add another `-p 1202:1202/udp` to allow udp port 1202 through as well so.\

```auto
docker run -it -p 1880:1880 -p 1202:1202/udp -v node_red_data:/data --name mynodered nodered/node-red:2.2.2

```

---

<div class="post-metadata">

**Author:** ![RBSI](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@RBSI](https://discourse.nodered.org/u/RBSI)\
**Post date:** [20 July 2022 15:22 UTC](https://discourse.nodered.org/t/node-red-no-debug-output-wago-pfc-ecockpit/65368/8 "2022-07-20T15:22:33Z")

</div>

Thank you very much! that worked, i never knew that problem was towards my docker command line. i tried using a netstat -a or a wireshark to see if there is any realtime UDP transactions or not but yeah seems like that was definitely not the right approach at all! Thank you again and please do share any future tips for troubleshooting in these kinda problems.

Thanks

---

<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:** [20 July 2022 15:25 UTC](https://discourse.nodered.org/t/node-red-no-debug-output-wago-pfc-ecockpit/65368/9 "2022-07-20T15:25:51Z")

</div>

Well if you use docker then reading the docker command line manuals is always a good idea!

---

<div class="post-metadata">

**Author:** ![RBSI](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@RBSI](https://discourse.nodered.org/u/RBSI)\
**Post date:** [2 August 2022 21:23 UTC](https://discourse.nodered.org/t/node-red-no-debug-output-wago-pfc-ecockpit/65368/10 "2022-08-02T21:23:35Z")

</div>

Hello, thanks for helping on the setting up of a direct UDP connection on the node-red via docker. I am actually stuck where i am sending (UDP output) in this case via netvar-sender node in the node-red. I don't get any data out from UDP out as i believe you mentioned above that for the broadcast or multicast i require something more, can you please guide me, more on that?

---

<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:** [1 October 2022 21:24 UTC](https://discourse.nodered.org/t/node-red-no-debug-output-wago-pfc-ecockpit/65368/11 "2022-10-01T21:24:08Z")

</div>

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