I have a Node.JS application receiving UDP packets, which I have recently moved into a Docker container for easy deployment. The application relies on distinguishing multiple UDP streams based on the source IP (using rinfo.address on the 'message' event).
For some of these streams, the source IP is reported as 172.17.0.1, which is just the IP of the "outside" as seen from inside the Docker container.
How can I reliably get the actual origin IP of UDP packets inside a Docker container?