# UDP in IPv6 weird behaviour

**URL:** <https://discourse.nodered.org/t/udp-in-ipv6-weird-behaviour/61533>\
**Category:** General\
**Tags:** docker\
**Created:** [20 April 2022 09:22 UTC](https://discourse.nodered.org/t/udp-in-ipv6-weird-behaviour/61533 "2022-04-20T09:22:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stelios](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Stelios](https://discourse.nodered.org/u/Stelios)\
**Post date:** [20 April 2022 09:22 UTC](https://discourse.nodered.org/t/udp-in-ipv6-weird-behaviour/61533/1 "2022-04-20T09:22:11Z")

</div>

Hi all!

I've been using NR as an orchestrator (i hope im using that term properly) in the company I work for, for the last year.

Recently we started exploring NB-IoT technology which communicates using UDP packets.

I am currently trying to send UDP packets between two separate NR instances  
(Both instances are running recent versions.).

Lets call them NR\_1 and NR\_2:

- NR\_1 is hosted on a remote Windows Server
- NR\_2 is hosted in a Docker Container, running on a remote Ubuntu Server

When sending an IPv4 UDP packet (using a simple injection node wired to an IPv4 UDP out node) from NR\_1 to NR\_2 i receive it and everything is good.  
_Quick note on that though: for some reason i receive the IPv4 packet to both listeners on NR\_2 (IPv4 UDP in as well as IPv6 UDP in)_

The problems begin when trying to send an IPv6 UDP packet from NR\_1 to NR\_2. So the packet leaves NR\_1, reaches the Ubuntu Server (captured it on tShark) but never reaches the container and inevitably neither does it reach NR\_2.

To make matters even more confusing, i tried sending the same packet with the same config from NR\_2 to NR\_2 and it worked for a couple attempts, before forever breaking and never working ever again.

Let me add another quick note here and say that I have taken the necessary steps to bridge the container with the server (proven by the fact that the IPv4 test works).

I am not expert in any of this (neither NR nor networking or containers), but this seems like something simple that should be working easily.

Any help is appreciated and ofc im terribly sorry for any missing information.

I can share the flows but i see no point since everything is extremely simple (inject nodes connected to UDP out nodes from one side, and UDP in nodes connected to debug nodes from the other side.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 April 2022 12:14 UTC](https://discourse.nodered.org/t/udp-in-ipv6-weird-behaviour/61533/2 "2022-04-20T12:14:48Z")

</div>

Added a docker tag to this as I suspect that is the issue.

Have you enabled IPv6 support in Docker?

[Enable IPv6 support | Docker Documentation](https://docs.docker.com/config/daemon/ipv6/)

---

<div class="post-metadata">

**Author:** ![Stelios](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Stelios](https://discourse.nodered.org/u/Stelios)\
**Post date:** [20 April 2022 12:26 UTC](https://discourse.nodered.org/t/udp-in-ipv6-weird-behaviour/61533/3 "2022-04-20T12:26:50Z")

</div>

Yes i have, through the daemon file.

On my Portainer I can see the IPv6 as well as the IPv6 Gateway.

P.S. Thanks for the tag addition. Forgot about that one!

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 April 2022 12:28 UTC](https://discourse.nodered.org/t/udp-in-ipv6-weird-behaviour/61533/4 "2022-04-20T12:28:47Z")

</div>

No problem.

Have you tried setting up a node-red instance outside the container to see whether it really is a Docker issue or a node-red one?

---

<div class="post-metadata">

**Author:** ![Stelios](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Stelios](https://discourse.nodered.org/u/Stelios)\
**Post date:** [20 April 2022 12:31 UTC](https://discourse.nodered.org/t/udp-in-ipv6-weird-behaviour/61533/5 "2022-04-20T12:31:31Z")

</div>

I was going to try that as a last resort thing to be honest.

Even if that works, the NR\_2 instance that is running on Docker, is the Dev environment of the company, so the final setup must be done on Docker anyway.

Any other thoughts on how this would be a Docker issue ?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 April 2022 12:53 UTC](https://discourse.nodered.org/t/udp-in-ipv6-weird-behaviour/61533/6 "2022-04-20T12:53:28Z")

</div>

I'm no Docker expert let alone a Docker IPv6 one. But I'd expect this to be some kind of Docker network routing issue.

If you already have Node.js installed on the server, doing a quick setup of Node-RED is really easy. I'd recommend doing a local install rather than a global one which will lessen the impact. To remove, you can then simply delete the folder.

---

<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 June 2022 12:53 UTC](https://discourse.nodered.org/t/udp-in-ipv6-weird-behaviour/61533/7 "2022-06-19T12:53:52Z")

</div>

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