Glam Prestige Journal

Bright entertainment trends with youth appeal.

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

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy