We are spinning a nodejs server that emulates a machine's API on Ubuntu Linux. The objective is to be able to connect to i.e. 10.0.0.5:4028 and this should connect to localhost:4020, 10.0.0.6:4028 should connect to localhost:4021, and so on...
Is there a way to map external IPs to localhost ports?
I have thought of nginx using nginx streams and changing the hosts file on ubuntu, but that doesn't sound like the most elegant and correct way to do this.
Any ideas?
Reset to default