I will be setting up an Ubuntu 19.10 machine that has one-two wired network interface with multiple IP addresses assigned to it (eg. 10.0.0.1 and 10.0.0.2).
How can we run 2 identical Node.js apps such that the first uses 10.0.0.1 and the second uses 10.0.0.2?
In other words, when the first app (using 10.0.0.1) queries a remote API service, the request is seen to originate from 10.0.0.1. The first app also listens to the API responses sent back to 10.0.0.1. Similarly, the second app is restricted to the IP address 10.0.0.2 only.