Forward Different External Ip Addresses to Different Localhost: Ports on a Local Machine
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...
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?