I am running a Node.js application within a Linux VM in Oracle VirtualBox. The port 5858 on the VM is forwarded to the port 5858 on the localhost.<
5858
This is what I do in my linux Debian VM:
install balancer
sudo apt-get install balance -y
create a route in balancer to reroute your 5858 port to 5859
balance 5859 127.0.0.1:5858
start your app
node --debug app.js
now you can access it from outside the VM on port 5859