Skip to content

Instantly share code, notes, and snippets.

@sorenlouv
Last active February 19, 2023 22:06
Show Gist options
  • Save sorenlouv/2d9639ad228ccb051a9da752c8c70c66 to your computer and use it in GitHub Desktop.
Save sorenlouv/2d9639ad228ccb051a9da752c8c70c66 to your computer and use it in GitHub Desktop.
Simple Port forwarding with Node.js
// npm install http-proxy
var httpProxy = require('http-proxy');
var targetHost = '192.168.99.100';
var port = 8489;
httpProxy.createProxyServer({target:'http://' + targetHost + ':' + port}).listen(port);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment